Difference between revisions of "Ns localsqltimestamp"

From AOLserver Wiki
Jump to navigation Jump to search
(imported from WiKit id 595)
 
 
Line 30: Line 30:
 
: [[ns_localtime]]
 
: [[ns_localtime]]
  
----
 
  
[[Category Documentation]] - [[Category Core Tcl API]]
+
[[Category:Documentation]] [[Category:Core Tcl API]]

Latest revision as of 20:03, 7 February 2009

Man page: http://aolserver.com/docs/tcl/ns_localsqltimestamp.html


NAME

ns_localsqltimestamp - Return a SQL timestamp containing the local time.

SYNOPSIS

ns_localsqltimestamp

DESCRIPTION

This command returns a timestamp value that encodes the local time in ANSI SQL format (YYYY-MM-DD hh24:mm:ss).

EXAMPLES

   % ns_localsqltimestamp
   2004-06-22 23:00:27
This command is equivalent to the following:
   % ns_fmttime ns_time "%Y-%m-%d %H:%M:%S"
   % clock format ns_time -format "%Y-%m-%d %H:%M:%S"

SEE ALSO

ns_localtime