@jsh/system
Since v8.0.52now()
Get the process id of the current process.
Syntax
now()
Parameters
None.
Return value
Current time in native object.
Usage example
|
|
parseTime()
Syntax
parseTime(epoch, epoch_format)
parseTime(datetime, format)
parseTime(datetime, format, location)
Parameters
epoch
Number
epoch_format
String
“s”, “ms”, “us”, “ns”datetime
String
format
String
location
Location
timezone, default is ‘Local’ if omitted., e.g. system.location(‘EST’), system.location(‘America/New_York’)
Return value
Time in native object
Usage example
|
|
location()
Syntax
location(timezone)
Parameters
timezone
String
time zone, e.g."UTC"
,"Local"
,"GMT"
,"ETS"
,"America/New_York"
…
Return value
Location in native object
Usage example
|
|
Last updated on