[ Previous ] [ Contents ] [ Index ] [ Next ]

ns_localtime

Overview

Return local time

Syntax

ns_localtime

Description

This function returns a Tcl list of the pieces of the current local time. The pieces are:

    seconds (0-59)
    minutes (0-59)
    hours (0-23)
    dayofmonth (1-31)
    monthofyear (0-11)
    year (year-1900)*
    dayofweek (Sunday=0)
    dayofyear (0-365)
    1 if Daylight Savings Time is in effect

All values are numeric.

* Note that the year value can be longer than two digits, which allows for years past 1999.

Top of Page

[ Previous ] [ Contents ] [ Index ] [ Next ]
Copyright © 1998-99 America Online, Inc.