Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: Calculate clock ticks since a given date

by kurgan (Novice)
on Oct 26, 2012 at 06:30 UTC ( #1001001=note: print w/ replies, xml ) Need Help??


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.


Comment on Re^2: Calculate clock ticks since a given date
Re^3: Calculate clock ticks since a given date
by BrowserUk (Pope) 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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1001001]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (8)
As of 2014-08-01 08:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (257 votes), past polls