Erlang Mailing Lists

Author Message

<  Erlang questions mailing list  ~  erlang:now/0 off by over 90 seconds

gar1t
Posted: Mon Jul 12, 2010 4:46 am Reply with quote
User Joined: 11 Aug 2009 Posts: 55
I'm getting this:

1> {calendar:now_to_local_time(erlang:now()), erlang:localtime()}.
{{{2010,7,11},{23,36,54}},{{2010,7,11},{23,35,20}}}

erlang:now() is giving a result that's ~90 seconds in the future
(according to the OS clock - e.g. `date`)

I'm running VMWare and `hwclock` gives a "Cannot access the Hardware
Clock via any known method."

The docs state that "some other method" may be used to calculate the
now value if the OS doesn't support epoch time reporting.

Any thoughts on this?

Garrett

________________________________________________________________
erlang-questions (at) erlang.org mailing list.
See http://www.erlang.org/faq.html
To unsubscribe; mailto:erlang-questions-unsubscribe@erlang.org

Post received from mailinglist
View user's profile Send private message
gar1t
Posted: Mon Jul 12, 2010 3:08 pm Reply with quote
User Joined: 11 Aug 2009 Posts: 55
Yah, this was indeed the issue. I wasn't running hwclock as root. The
potential drift between system time and "hardware" clock on VMWare is
pretty awful.

It is somewhat surprising though that calendar and erlang:now/0 use
different sources for their time.

Garrett

On Mon, Jul 12, 2010 at 8:59 AM, Salomon Elizondo <selizondo@gmail.com> wrote:
> double check that your system time is up2date.
> sudo /usr/sbin/ntpdate -u time-a.nist.gov
> sudo /sbin/hwclock --systohc
>
> bug in vmware search "vmware clock drift"
>
>
> On Sun, Jul 11, 2010 at 11:43 PM, Garrett Smith <g@rre.tt> wrote:
>> I'm getting this:
>>
>> 1> {calendar:now_to_local_time(erlang:now()), erlang:localtime()}.
>> {{{2010,7,11},{23,36,54}},{{2010,7,11},{23,35,20}}}
>>
>> erlang:now() is giving a result that's ~90 seconds in the future
>> (according to the OS clock - e.g. `date`)
>>
>> I'm running VMWare and `hwclock` gives a "Cannot access the Hardware
>> Clock via any known method."
>>
>> The docs state that "some other method" may be used to calculate the
>> now value if the OS doesn't support epoch time reporting.
>>
>> Any thoughts on this?
>>
>> Garrett
>>
>> ________________________________________________________________
>> erlang-questions (at) erlang.org mailing list.
>> See http://www.erlang.org/faq.html
>> To unsubscribe; mailto:erlang-questions-unsubscribe@erlang.org
>>
>>
>

________________________________________________________________
erlang-questions (at) erlang.org mailing list.
See http://www.erlang.org/faq.html
To unsubscribe; mailto:erlang-questions-unsubscribe@erlang.org

Post received from mailinglist
View user's profile Send private message
wuji
Posted: Wed Sep 19, 2012 3:54 am Reply with quote
User Joined: 10 Aug 2012 Posts: 654
Washington D.C., State Department spokesman Victoria Nuland acknowledged the case case cheap designer *beep* case of Cao Ruyi."We've seen the reports that a Chinese
is being detained and possibly pressured into a forced abortion abortion [h3]cheap jordan shoes[/h3] abortion by Chinese family planning authorities after purportedly violating China's
policy," she told reporters during a press briefing. "We have have [h3]cheap replica *beep*[/h3] have reached out to the authorities in Beijing to ask
this issue."Nuland reiterated that the U.S. strongly opposes "all aspects aspects cheap replica designer *beep* aspects of China's coercive birth limitation policies," which they have
a serious human rights abuse.Groups from around the world became became replica designer *beep* became involved, including organization such as All Girls Allowed and
Rights in China.Rep. Chris Smith, R-N.J., sent a letter to to jordan 11 to local Changsha officials. The Texas-based group ChinaAid published his
View user's profile Send private message
mbtshoes88
Posted: Wed Sep 19, 2012 9:21 am Reply with quote
User Joined: 18 Sep 2012 Posts: 30
Acquiring the true blessing with the public isn’t necessarily straightforward. Organisations consequently have to Cheap Franklin & Marshall use a lot more efforts so as to bring your showcase of these Franklin & Marshall Online intended likely prospective buyers. These products allocate a tremendous provide advertising so that you Franklin & Marshall Clothing can deliver possibility shoppers. However, don’t assume Franklin & Marshall Hoodie Sweatshirt all businesses Franklin & Marshall Man have a similar determined expenditures just for saying. Franklin & Marshall Women When there is businesses that could commit a large amount meant for build-up, many only need important resources.The effective use of tailor made embellished products and Franklin and Marshall services, for instance a long sleeve polo top, provides a new on a good buy choice to get promoting an Franklin & Marshall Shirts online business. Compared with Cheap Franklin Marshall using billboards and / or tarpaulins, these kind of Franklin & Marshall Hoodies physical objects Franklin & Marshall Tracksuit will need trifling investment. These have granted companies a highly effective method for campaigning their products and services or products. By just applying 2012 Franklin & Marshall their management and business Franklin & Marshall Outlet company name or simply system,2012 franklin Cheap Franklin and Marshall & marshall Franklin & Marshall Jackets outlet online, it’s probably for Franklin & Marshall Sale them to get a new customer.
View user's profile Send private message

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum