Sponsored Content
Full Discussion: Timezone Setting
Operating Systems AIX Timezone Setting Post 302239477 by bakunin on Tuesday 23rd of September 2008 08:52:47 PM
Old 09-23-2008
Quote:
Originally Posted by KiwiP
will AIX interpret the fifth Sunday[...] as the last of the month
Exactly this is the meaning of the "fifth" weekday: the last in a month. Maybe this will provide some additional information, but you seem to have figured it out pretty well already.

I hope this helps.

bakunin
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Timezone

Hello again, under hp-ux i have a file /etc/TIMEZONE. here is definied which timezone i am. i dont know who reads this file to set after reading the timezone under /usr/lib/tztab. my 2 questions, who reads the file /etc/TIMEZONE ( which service ) and do i need in the first line to set my... (6 Replies)
Discussion started by: ortsvorsteher
6 Replies

2. UNIX for Dummies Questions & Answers

Timezone

Hi, I got an question about changing timezone thrue command line on a SunOS Release 4.1.2 without restarting the computer. Now it's set on WET and I want to set the timezone to CET (GMT +1) Plz somebody help me. Regards Novisern:confused: (5 Replies)
Discussion started by: Novisern
5 Replies

3. UNIX for Dummies Questions & Answers

timezone

Hi, i am searching to change the timezone on a HP-UX11 system. Since last weekend the summertime started i am not able to change the time to the new time, every day the time changes back to wintertime. I think the problem is that the server is on the wrong timezone. Can someone help me please?... (1 Reply)
Discussion started by: eddyvdv
1 Replies

4. UNIX for Advanced & Expert Users

Timezone

HI ; I got Solaris8 installed oon Sunfire V440 .I have TZ=GMT in /etc/TIMEZONE , but when i log in as root i see the date in GMT+1. So i have every time to "set TZ=GMT ; export $TZ" . How can i set the TZ=GMT at the startup defenitely. Thanks :) (7 Replies)
Discussion started by: oss
7 Replies

5. Solaris

Setting TImezone fr Hong kong

Hi, In solaris how to change the timezone to display to HKT I tried by putting TZ=Hongkong or TZ=Asia/Hong_kong but it is taking me to the display of CST. how to change it to HKT thanks Bala (1 Reply)
Discussion started by: Balamurugan
1 Replies

6. Solaris

Setting timezone Sunos 5.8 & adjusting

I am new to this so i figure this is an easy one.. How do i change the time zone from Central to Eastern time in SunOS 5.8 ? I thought I needed to edit the /etc/TIMEZONE and them issue TZ=US/Eastern but I want to check. Is a reboot required afterwards? If I want to change the system time... (3 Replies)
Discussion started by: jay6ird
3 Replies

7. Solaris

Timezone query

Hi Everyone, We have Solaris server which displays the time in CET and our application is used across the globe.(Users are in singapore, poland, US). At present in order to display Timezone we are manually manupulating time based on country in a enviromental file. I want to know , do we... (2 Replies)
Discussion started by: gehlnar
2 Replies

8. Shell Programming and Scripting

Convert timezone

Hi, I have date with my server's timezone. I want to convert it with another timezone either EST or GMT, found Date:Manip module but cant find exact use, can anyone help... (4 Replies)
Discussion started by: darshakraut
4 Replies

9. UNIX for Dummies Questions & Answers

Need help with Timezone locale.

HI Gurus, I have a issue. One of our applications needs the data loads with the timezone (CST) but our zones run on GMT. I tried to change the TZ value under /etc/default/init value but it seems to effect the the whole zone. Is there any way I can just set up the TZ as CST for a particular user.... (2 Replies)
Discussion started by: rama krishna
2 Replies

10. Solaris

Is there a difference between setting a user as nologin and setting it as a role?

Trying to figure out the best method of security for oracle user accounts. In Solaris 10 they are set as regular users but have nologin set forcing the dev's to login as themselves and then su to the oracle users. In Solaris11 we have the option of making it a role because RBAC is enabled but... (1 Reply)
Discussion started by: os2mac
1 Replies
strftime(3)						     Library Functions Manual						       strftime(3)

Name
       strftime - convert time and date to string

Syntax
       #include <time.h>

       int strftime (s, maxsize, format, tm)
       char *s;
       size_t maxsize;
       char *format;
       struct tm *tm;

Description
       The  function  places characters in the array pointed to by s.  No more than maxsize characters are placed into the array.  The string con-
       trols this process.  This string consists of zero or more directives and ordinary characters.  A directive consists of a character followed
       by  a  character that determines the behavior of the directive.	All ordinary characters are copied unchanged into the array, including the
       terminating null character.

       Each directive is replaced by the appropriate characters as shown in the following table. The characters are determined	by  the  program's
       locale category and the values contained in the structure pointed to by tm.

       -------------------------------------------------------------
       Directive   Replaced by
       -------------------------------------------------------------
       %a	   Locale's abbreviated weekday name
       %A	   Locale's full weekday name
       %b	   Locale's abbreviated month name
       %B	   Locale's full month name
       %c	   Locale's date and time representation
       %d	   Day of month as a decimal number (01-31)
       %D	   Date (%m/%d/%y)
       %h	   Locale's abbreviated month name
       %H	   Hour as a decimal number (00-23)
       %I	   Hour as a decimal number (01-12)
       %j	   Day of year (001-366)
       %m	   Number of month (01-12)
       %M	   Minute number (00-59)
       %n	   Newline character
       %p	   Locale's equivalent to AM or PM
       %r	   Time in AM/PM notation
       %S	   Second number (00-59)
       %t	   Tab character
       %T	   Time (%H/%M/%S)
       %U	   Week number (00-53), Sunday as first day of week
       %w	   Weekday number (0[Sunday]-6)
       %W	   Week number (00-53), Monday as first day of week
       %x	   Locale's date representation
       %X	   Locale's time representation
       %y	   Year without century (00-99)
       %Y	   Year with century
       %Z	   Timezone name, no characters if no timezone
       %%	   %
       -------------------------------------------------------------

       If a directive is used that is not contained in the table, the results are undefined.

   International Environment
       LC_TIME	      Contains the user's requirements for language, territory, and codeset for the time format.  affects the behavior of the time
		      functions in If is not defined in the current environment, provides the necessary default.

       LANG	      If this environment is set and valid, uses the international language database named in the definition to determine the time
		      formatting rules. If is defined, its definition supercedes the definition of

Return Values
       If  the	total  number  of  resulting characters, including the terminal null character, is not more than maxsize, the function returns the
       total of resultant characters placed into the array pointed to by s, not including the terminating null character.  In all other cases zero
       is returned and the contents of the array are indeterminate.

       As the name is not contained in the tm structure the value returned by %Z is determined by the function, see

See Also
       ctime(3), setlocale(3)

																       strftime(3)
All times are GMT -4. The time now is 10:59 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy