Difference between revisions of "NXSL:gmtime"

From NetXMS Wiki
Jump to navigation Jump to search
(Created page with "__NOTOC__ Converts time in UNIX format (number of seconds since epoch) to calendar date and time broken down into its components, expressed as UTC (or GMT timezone). Function ...")
 
m (Text replacement - "^" to "{{deprecated}}")
 
Line 1: Line 1:
__NOTOC__
{{deprecated}}__NOTOC__
Converts time in UNIX format (number of seconds since epoch) to calendar date and time broken down into its components, expressed as UTC (or GMT timezone). Function uses either time given in time argument or current time if time is omitted.
Converts time in UNIX format (number of seconds since epoch) to calendar date and time broken down into its components, expressed as UTC (or GMT timezone). Function uses either time given in time argument or current time if time is omitted.



Latest revision as of 18:13, 13 September 2022

This Wiki is deprecated and we are are currrently migrating remaining pages into product documentation (Admin Guide, NXSL Guide)

Converts time in UNIX format (number of seconds since epoch) to calendar date and time broken down into its components, expressed as UTC (or GMT timezone). Function uses either time given in time argument or current time if time is omitted.


Syntax

gmtime(time);


Parameters

time Time as seconds since epoch (1 January 1970 00:00:00 UTC). If omitted, current time is used.


Return Value

Object of class TIME.


Examples

gmtime(time())->year	->	2012
gmtime()->year		->	2012