sleep 1 will sleep for around one second. Given the vagaries of multiuser systems, clock timings, and cosmic rays (you can never tell) -- sleep might run for 0.9 seconds or 1.05 seconds. Add to that time the amount of time that date takes to run, and I can easily see seconds being skipped:
09:12:03.75 - date runs, prints 09:12:03
09:12:04.05 - sleep runs
09:12:05:06 - date runs, prints 09:12:05
I would expect even a simple C-program such as:
to skip a second now and again, although a lot less frequently.
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)
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)
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)
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
LEARN ABOUT BSD
ctime
TIME(3F)TIME(3F)NAME
time, ctime, ltime, gmtime - return system time
SYNOPSIS
integer function time()
character*(*) function ctime (stime)
integer stime
subroutine ltime (stime, tarray)
integer stime, tarray(9)
subroutine gmtime (stime, tarray)
integer stime, tarray(9)DESCRIPTION
Time returns the time since 00:00:00 GMT, Jan. 1, 1970, measured in seconds. This is the value of the UNIX system clock.
Ctime converts a system time to a 24 character ASCII string. The format is described under ctime(3). No 'newline' or NULL will be
included.
Ltime and gmtime disect a UNIX time into month, day, etc., either for the local time zone or as GMT. The order and meaning of each element
returned in tarray is described under ctime(3).
FILES
/usr/lib/libU77.a
SEE ALSO ctime(3), itime(3F), idate(3F), fdate(3F)4.2 Berkeley Distribution May 15, 1985 TIME(3F)