Sponsored Content
Full Discussion: Change the time in AIX
Top Forums UNIX for Dummies Questions & Answers Change the time in AIX Post 302110801 by xCape on Thursday 15th of March 2007 11:39:44 AM
Old 03-15-2007
Using the date command:

> /usr/bin/date 03151129

will give you Mar 15 11:29:00
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Time change not working...

Hi, I am pretty new to the Solaris world. Just installed the version 8 and found that the time is off. I am in the Central time zone. In the beginning, the date and time was off by a day. After changing the /etc/default/init, there is no avail. The date is now correct but the time is still 5 hours... (7 Replies)
Discussion started by: conflansun
7 Replies

2. UNIX for Dummies Questions & Answers

How to change time as root?

Hi, Can someone tell me how to change time inside red hat linux machine as root? ThanX! (1 Reply)
Discussion started by: whatisthis
1 Replies

3. Linux

How To change time?

what command must i use to change time ? (4 Replies)
Discussion started by: Sirius
4 Replies

4. Solaris

change time

The time of our Solaris server now is slowly more 20 seconds. How can we change it ? (3 Replies)
Discussion started by: anhtt
3 Replies

5. AIX

How to change time on servers

Hi all We are currently using AIX 5.3, we reuquire to change the time according to the daylight saving scenario. We are using the internal clock and are not synced with ntp server. Can any one please tell me how to do that without effecting the processes running on the servers? (2 Replies)
Discussion started by: masquerer
2 Replies

6. Shell Programming and Scripting

how to change time hr:mm to mm:hr in perl

Hi I want to match time hr:mm and change to mm:hr please let me know how to do that in perl (2 Replies)
Discussion started by: lakshmikant
2 Replies

7. AIX

AIX TIME CHANGE

Hi Guys , I see a weird problem with one of the AIX Machine, The time is changing randomly on the server. The seconds part of the time is what is the problem which is jumping on a uneven order and coming back to the original state after some time and again the same.. I have collected the time... (8 Replies)
Discussion started by: kkeng808
8 Replies

8. Debian

change time

Hi all, I want change the time settings from EST to IST by using command line in Debian os. but it is not taken. Can any body show me the how to change the time settings by using command line. Thanks, (1 Reply)
Discussion started by: mastansaheb
1 Replies

9. AIX

Bug in AIX 6.1/7.1 Time Zone DST Change -again

Hi Everyone Just wanted to share with you that IBM AIX is having again problem with Summer Time Shift.. IBM Possible Action Required: System time may not change properly at DST start/end dates on AIX 7.1 and AIX 6.1 - United States For me it means some additional overtimes in the... (0 Replies)
Discussion started by: gito
0 Replies
gettimeofday(2) 						System Calls Manual						   gettimeofday(2)

NAME
gettimeofday - get the date and time SYNOPSIS
DESCRIPTION
The function obtains the current time, expressed as seconds and microseconds since Epoch, and stores it in the structure pointed to by tp. The resolution of the system clock is one microsecond. PARAMETERS
Programs should use this time zone information only in the absence of the environment variable. tp A pointer to a structure in which the current time is returned. The structure includes the following members: tzp If this parameter is not a null pointer, it is interpreted as a pointer to a structure under HP-UX. The structure has the following fields: tz_minuteswest The number of minutes that the local time zone is west of Coordinated Universal Time (UTC) or Epoch. tz_dsttime A flag that, if nonzero, indicates that Daylight Savings Time (DST) applies locally during the appropriate part of the year. RETURN VALUE
returns the following values under HP-UX: Successful completion. Failure. is set to indicate the error. ERRORS
If fails, is set to the following value under HP-UX: [EFAULT] An argument address referenced invalid memory. EXAMPLES
The following HP-UX example calls twice. It then computes the lapsed time between the calls in seconds and microseconds and stores the result in a timeval structure: WARNINGS
Relying on a granularity of one microsecond may result in code that is not portable to other platforms. AUTHOR
was developed by the University of California, Berkeley, and HP. SEE ALSO
date(1), ftime(2), settimeofda(2), stime(2), time(2), ctime(3C). gettimeofday(2)
All times are GMT -4. The time now is 06:39 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy