Ns localsqltimestamp

From AOLserver Wiki
Jump to: navigation, search

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