http://www.perlmonks.org?node_id=1001001


in reply to Re: Calculate clock ticks since a given date
in thread Calculate clock ticks since a given date

You are definitely not going to get any argument from me on the inconsistency of time from multiple perspectives and / or histories. :)

My project comes from working with a credit card merchant (I have no voice in deciding which) requires a field in the HTML form generated from a Perl script that is based on "UTC time in ticks". I found (the best single page explanation I came across) that there are at least two generally accepted slices of the second (60 and 100) and I am being told to go with the 100.

The epoch date used by them is the 01/01/0001 00:00:00, not mine unfortunately.

I was not able to find much, so I guess epoch to "ticks" is either never converted or universally understood and I did not get the memo.

Thank you for your thoughtful response.

Replies are listed 'Best First'.
Re^3: Calculate clock ticks since a given date
by BrowserUk (Patriarch) on Oct 26, 2012 at 06:50 UTC
    My project comes from working with a credit card merchant (I have no voice in deciding which) requires a field in the HTML form generated from a Perl script that is based on "UTC time in ticks".

    Does the C# snippet derive from that credit card company, or just some arbitrary thing found on the web?

    If not the former, you'd best ask them what the EPOCH_ADJUST_CONSTANT should be in:

    my $CCTime = ( time() + ($localeOffset * 3600) ) * 100 + EPOCH_ADJUST_ +CONSTANT;

    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.

    RIP Neil Armstrong