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

ns_parsetime

Overview

Return specified time element from a 10-element formatted time

Syntax

ns_parsetime option time

Description

ns_parsetime returns the value of one element (specified by option) of a time. The specified time must be formatted as a list of 10 elements, such as the time returned by ns_localtime. Valid options are:

option

Description

sec

seconds (0-59)

min

minutes (0-59)

hour

hours (0-23)

mday

day of month (1-31)

mon

month of year (0-11)

year

4-digit year (e.g., 1965)

wday

day of week (0-6, where Sunday=0)

yday

day of year (0-365)

isdst

is it daylight savings time? (1=true)

Top of Page

[ Previous ] [ Contents ] [ Index ] [ Next ]
Copyright © 1996 America Online, Inc.