|
sysdate Returns the current date
package require nstcl-time ?1.0.1?
package require nstcl ?1.0?::nstcl::sysdate ?-seconds? ?-format format? ?-offset offset? ?-base base?
This function returns the current date.
- -seconds
- This switch causes the result to be returned as the number of seconds since the epoch.
- -format
- Specifies the way the result should be formatted. This option has no effect if -seconds is specified. For a list of formatting string options, consult the documentation for [clock format].
- -offset (defaults to 0 days ago)
- This switch can be used to shift the date calculation from today (0 days ago) to some other relative time (such as 2 weeks ago) understood by [clock scan].
- -base
- Calculate the date based on a given (absolute) date as a base. (Any date understood by [clock scan] can be used.) If no base is specified the current time is used instead.
nstcl, time