Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: Binary format of time

by ccn (Vicar)
on May 26, 2009 at 07:49 UTC ( #766150=note: print w/replies, xml ) Need Help??


in reply to Re: Binary format of time
in thread Binary format of time

I suspect that time is stored in some ticks but is showed in seconds. Please see the update of original post. I am almost shure that those 8 bytes are time.

Replies are listed 'Best First'.
Re^3: Binary format of time
by dHarry (Abbot) on May 26, 2009 at 09:34 UTC

    Thinking 8 bytes and ticks you might want to try the following:

    First four bytes (0-3) | Last four bytes (4-7) --------------------------------------------------- seconds since epoch, | additional micro- e.g. 00:00 1st Jan 1970 | seconds Both four byte values are 32 bit integers.

    However, my first calculations give timestamps nowhere near the ones you provide. Maybe some CCSDS time format was used?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://766150]
help
Chatterbox?
[Corion]: ambrus: Oh - that one would be much harder to automate... The SYNOPSIS section should mostly be a runnable program IMO, but I write only small snippets in my documentation for single functions/methods, and creating the appropriate environment for ...
[Corion]: ... those in an automated fashion seems somewhat hard to me. Although it should do wonders for the test coverage ;)
[haukex]: Corion: I once wrote an automated thingy for that here
[haukex]: here's the code that uses it
[Corion]: haukex: Hmm - maybe I can reuse that. I see that it uses Pod::Parser, which I think was one of the more fragile parsers. But if I'm statically (re)generating the tests instead of doing that "live" on the client/tester machines, that's a much smaller...
[Corion]: ... problem space than trying to cater to all versions of Pod::Parser(s)

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (10)
As of 2017-02-27 12:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (385 votes). Check out past polls.