[ Table Of Contents | Keyword Index ]

ns_localsqltimestamp(n) 4.99 "NaviServer Built-in Commands"

NAME

ns_localsqltimestamp - Return a SQL timestamp containing the local time

TABLE OF CONTENTS

    TABLE OF CONTENTS
    SYNOPSIS
    DESCRIPTION
    COMMANDS
    EXAMPLES
    SEE ALSO
    KEYWORDS

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).

COMMANDS

ns_localsqltimestamp

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

nsd

KEYWORDS

ns_localtime