nstcl  >  Documentation  >  nstcl-time  >  ns_fmttime

Tcl Powered!

ns_fmttime

NAME

ns_fmttime — Returns a formatted date and time

SYNOPSIS

package require nstcl-time ?1.0.1?
package require nstcl ?1.0?

::nstcl::ns_fmttime time ?format?

DESCRIPTION

This function returns the time (represented as the number of seconds since the beginning of the epoch) formatted according to the value of format. The default format string is "%a %b %d %T %Y". Consult the documentation for the [clock] command for a list of format string values.

KEYWORDS

nstcl, time