Difference between revisions of "NXSL:localtime"

Jump to navigation Jump to search
15 bytes added ,  16:13, 13 September 2022
m
Text replacement - "^" to "{{deprecated}}"
m (Text replacement - "^" to "{{deprecated}}")
 
(One intermediate revision by one other user not shown)
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. 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. Function uses either time given in time argument or current time if time is omitted.


Line 23: Line 23:
== Examples ==
== Examples ==


  localtime(time())->year -> 2012
  localtime(time())->year -> 2012
  localtime()->year -> 2012
  localtime()->year -> 2012

Navigation menu