[asterisk-users] Time variables in system application

Danny Nicholas danny at debsinc.com
Tue Apr 13 15:09:08 CDT 2010


My "derailed" train of thought came from OP's mention of Centos 5.3 - I have
to do a "hwclock -s" on my 5.3 box at least daily to keep a reasonable time.

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Tilghman
Lesher
Sent: Tuesday, April 13, 2010 2:58 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Time variables in system application

On Tuesday 13 April 2010 14:00:36 Danny Nicholas wrote:
> Just what I thought - guess that's the X'th time I wuz wrong today.

The only difference between what I think you're calling the system time
(output of date) and Asterisk is that Asterisk uses a different (internal)
library to convert the epoch-based time into a broken-out date.  Both
are using exactly the same value internally, however.  Hardware clock is
generally how system time is set initially at boot, though with NTP servers
and system skew, it's possible for the two values to drift apart over time.

-- 
Tilghman Lesher
Digium, Inc. | Senior Software Developer
twitter: Corydon76 | IRC: Corydon76-dig (Freenode)
Check us out at: www.digium.com & www.asterisk.org

-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users




More information about the asterisk-users mailing list