Your Mother has asked for the wisdom of the Perl Monks concerning the following question:
I am embarrassed to ask. In my defense I figured out quite a bit of my problem already (there were six or seven parts and I'm stuck on this, the last, one); I'm just not that good at this so–
What unpack template do I need to turn the 8 bytes -- 00 00 01 16 7A 53 7C 80 (meaning I don't have a hex string but a byte stream) -- into a timestamp November 26,2007 (so, this might be 1196060400 but I'm not sure it won't be somewhere else in the day.
I tried everything I could think to try. All the flags plain templates (even ones that didn't make any sense). Splitting the bytes up into groups and reversing them before unpacking with "L*" or friends. What's the right way?
Thank you!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Little help for the (un)pack challenged
by BrowserUk (Patriarch) on Oct 01, 2009 at 07:15 UTC | |
by Your Mother (Archbishop) on Oct 01, 2009 at 07:54 UTC | |
|
Re: Little help for the (un)pack challenged
by almut (Canon) on Oct 01, 2009 at 07:38 UTC |