Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

ns_fmttime(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

sttime(3)						    ShapeTools Toolkit Library							 sttime(3)

NAME
stMktime, stWriteTime - date and time handling SYNOPSIS
#include <config.h> #include <sttk.h.h> time_tstMktime (char *string); char*stWriteTime (time_t date); DESCRIPTION
stMktime scans the given string and tries to read a date and time from it. It understands various formats of date strings. The following is a list of all valid formats, optional parts in brackets. [Tue] Jan 5[,] [19]93 This includes the standard asctime(3) format. Jan 5 With no year given, the year defaults to the current year. [19]93/01/05 This notation requires month and day represented by exactly two digits. 5.1.[19]93 This is the usual German notation. 5.1. German notation referencing the current year. A certain time, given together with the date must always have the following form. hours:minutes[:seconds] Each of the fields must be an integer value within the proper range (hours: 0-23, minutes and seconds: 0-59). Values below 10 may be written as one digit numbers. The time value may be placed anywhere in the date string: at the beginning, at the end, or somewhere in the middle. Any amount of white- space may be given between a field of the time value and the separating colon. The time is always considered to be local time. stWriteTime generates a time string similar to asctime(3) from its date argument. SEE ALSO
asctime(3) BUGS
Time Zone Names within the time string (like `MET') are not handled properly. In most cases they will cause a failure. sttk-1.7 Thu Jun 24 17:43:35 1993 sttime(3)
Man Page

8 More Discussions You Might Find Interesting

1. Post Here to Contact Site Administrators and Moderators

Daylight Savings - Timezones etc...

Hey Neo - or other Unix.com staffers - I've selected my Timezone for the forums - however it's wrong for my Country - as we have Daylight Savings for 6 months of the year - so currently were 1 hour ahead of the time that is provided in the personal options pages. Can we add another for this - no... (5 Replies)
Discussion started by: peter.herlihy
5 Replies

2. UNIX for Advanced & Expert Users

Y2k7 Problem

Off Topic: Daylight Saving Time's Y2K7 Problem In 2007, Daylight Saving Time will start on the second Sunday in March (March 11, 2007) instead of the first Sunday in April (April 1, 2007). Desktop OS's patch themselves all the time, so the new DST rules taking effect next year won't have much of... (7 Replies)
Discussion started by: Krrishv
7 Replies

3. Solaris

Daylight Savings Time Fix

Hello, I've been looking at coming up with a time change on my Sun workstations since daylight savings time comes early this year. Someone at work told me that a sun patch is available if you have a maintenance contract. It was recommended to just set your systems to GMT time zone. How is this... (5 Replies)
Discussion started by: stocksj
5 Replies

4. UNIX for Advanced & Expert Users

Using sed command

Hi, My requirement is like this: I have a file with the following data ABC=01-01-1900 EFG=01-01-1901 xyz=01-01-1900 I want to write a script which will replace the 01-01-1900 that correspond to the ABC to be replaced with a new date string like '06-21-2007 02:12:33'. I tried a sed... (4 Replies)
Discussion started by: MeeraNair
4 Replies

5. UNIX for Advanced & Expert Users

Auto resetting for Daylight Savings Time

We have an ancient Unix box from Siemens. Every year the system automatically changes the time for EST or DST. Unfortunately since the box is so old the dates that the times change are the old dates and not the current ones set during (I think) the Bush years. When I have to set the time back... (3 Replies)
Discussion started by: jbcamel
3 Replies

6. Solaris

Time setting on Solaris 10

Hi all, Any idea please how to: -Change Time format from 24h format to 12h format (AM and PM) -Turn off DST: Daylight Save Time on a Solaris10 server Thanks in advance (1 Reply)
Discussion started by: rafikrafik09
1 Replies

7. Red Hat

Problem setting up SSMTP with Office 365

Hi guys! Im trying to setup my box so it can send its emails through Office 365 SMTP. I spent 8 hours yesterday trying to configure sendmail to do this, but I gave up. Now Im trying to do it with SSMTP and I followed this guide to configure it How to install and configure sSMTP on CentOS /... (0 Replies)
Discussion started by: RedSpyder
0 Replies

8. Shell Programming and Scripting

Add or Subtract the hours,minutes or seconds in the the time variable

Hello All, I am working on script where I need to add hours,minutes or seconds in the time.Time is not the current but it could be future time.I thought I can store that time in variable and add hours.minutes or second but I am not able to add that in the time that is stores in a variable. Time... (9 Replies)
Discussion started by: anuragpgtgerman
9 Replies