Difference between revisions of "Ns gmtime"

From AOLserver Wiki
Jump to navigation Jump to search
(imported from WiKit id 571)
 
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Man page: http://aolserver.com/docs/tcl/ns_gmtime.html
+
<manpage>ns_gmtime</manpage>
 
 
----
 
  
 
'''NAME'''
 
'''NAME'''
Line 33: Line 31:
 
: [[ns_fmttime]], [[ns_httptime]], [[ns_localtime]], [[ns_parsehttptime]], [[ns_parsetime]], [[ns_time]]
 
: [[ns_fmttime]], [[ns_httptime]], [[ns_localtime]], [[ns_parsehttptime]], [[ns_parsetime]], [[ns_time]]
  
----
+
[[Category:Documentation]]
 
+
[[Category:Core Tcl API]]
[[Category Documentation]] - [[Category Core Tcl API]]
 

Latest revision as of 21:08, 14 March 2006

<manpage>ns_gmtime</manpage>

NAME

ns_gmtime - Return current time in Greenwich Mean Time (GMT)

SYNOPSIS

ns_gmtime

DESCRIPTION

This command returns a nine-element Tcl list representing the current time in Greenwich Mean Time (GMT). The structure of the list corresponds to the Unix struct tm time structure:
  • seconds (0-59)
  • minutes (0-59)
  • hours (0-23)
  • dayofmonth (1-31)
  • monthofyear (0-11)
  • year (year-1900)
  • dayofweek (0-6, Sunday=0)
  • dayofyear (0-365)
  • isdst (>0 if Daylight Savings Time is in effect)

EXAMPLES

   % ns_gmtime
   40 31 2 12 5 104 6 163 0

SEE ALSO

ns_fmttime, ns_httptime, ns_localtime, ns_parsehttptime, ns_parsetime, ns_time