Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

ns_time(3aolserv) [debian man page]

ns_time(3aolserver)					    AOLserver Built-In Commands 				       ns_time(3aolserver)

__________________________________________________________________________________________________________________________________________________

NAME
ns_time, ns_fmttime, ns_gmtime, ns_localtime, - commands SYNOPSIS
ns_fmttime time ?format string? ns_gmtime ns_localtime ns_time _________________________________________________________________ DESCRIPTION
ns_time: Returns the value of time in seconds since 00:00:00 UTC, January 1, 1970. This return value is suitable as input to the ns_http- time function to get the current time. ns_fmttime: Formats the time string,time,according to the format provided in format string. If no format is provided, defaults to "%a %b %e %H:%M:%S %Z %Y". ns_gmttime: Returns a Tcl list of the pieces of the current Greenwich Mean 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 ns_localtime: 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 EXAMPLES
ns_fmttime [ns_time] returns: Tue Nov 12 15:14:47 2002 ns_fmttime [ns_time] "%Y%m%d" returns: 20021112 SEE ALSO
ns_httptime KEYWORDS
AOLserver 4.0 ns_time(3aolserver)

Check Out this Related Man Page

GETDATE(3)								 1								GETDATE(3)

getdate - Get date/time information

SYNOPSIS
array getdate ([int $timestamp = time()]) DESCRIPTION
Returns an associative array containing the date information of the $timestamp, or the current local time if no $timestamp is given. PARAMETERS
o $timestamp - The optional $timestamp parameter is an integer Unix timestamp that defaults to the current local time if a $timestamp is not given. In other words, it defaults to the value of time(3). RETURN VALUES
Returns an associative array of information related to the $timestamp. Elements from the returned associative array are as follows: Key elements of the returned associative array +----------+--------------------------------------+---+ | Key | | | | | | | | | Description | | | | | | | | Example returned values | | | | | | +----------+--------------------------------------+---+ | | | | |"seconds" | | | | | | | | | Numeric representation of seconds | | | | | | | | | | | | 0 to 59 | | | | | | | | | | |"minutes" | | | | | | | | | Numeric representation of minutes | | | | | | | | | | | | 0 to 59 | | | | | | | | | | | "hours" | | | | | | | | | Numeric representation of hours | | | | | | | | | | | | 0 to 23 | | | | | | | | | | | "mday" | | | | | | | | | Numeric representation of the day of | | | | the month | | | | | | | | | | | | 1 to 31 | | | | | | | | | | | "wday" | | | | | | | | | Numeric representation of the day of | | | | the week | | | | | | | | | | | | 0 (for Sunday) through 6 (for Satur- | | | | day) | | | | | | | | | | | "mon" | | | | | | | | | Numeric representation of a month | | | | | | | | | | | | 1 through 12 | | | | | | | | | | | "year" | | | | | | | | | A full numeric representation of a | | | | year, 4 digits | | | | | | | | Examples: 1999 or 2003 | | | | | | | | | | | "yday" | | | | | | | | | Numeric representation of the day of | | | | the year | | | | | | | | | | | | 0 through 365 | | | | | | | | | | |"weekday" | | | | | | | | | A full textual representation of the | | | | day of the week | | | | | | | | | | | | Sunday through Saturday | | | | | | | | | | | "month" | | | | | | | | | A full textual representation of a | | | | month, such as January or March | | | | | | | | | | | | January through December | | | | | | | | | | | 0 | | | | | | | | | Seconds since the Unix Epoch, simi- | | | | lar to the values returned by | | | | time(3) and used by date(3). | | | | | | | | System Dependent, typically | | | | -2147483648 through 2147483647. | | | | | | +----------+--------------------------------------+---+ EXAMPLES
Example #1 getdate(3) example <?php $today = getdate(); print_r($today); ?> The above example will output something similar to: Array ( [seconds] => 40 [minutes] => 58 [hours] => 21 [mday] => 17 [wday] => 2 [mon] => 6 [year] => 2003 [yday] => 167 [weekday] => Tuesday [month] => June [0] => 1055901520 ) SEE ALSO
date(3), idate(3), localtime(3), time(3), setlocale(3). PHP Documentation Group GETDATE(3)
Man Page