Jump to content

Date/Location met


Kalashnikov

Recommended Posts

But why how exactly is it stored in 3 bytes?

That's what I'm trying (javascript):

var seconds = ((new Date()).getTime() - (new Date('January 1, 2000 00:00:00')).getTime()) / 1000;
var date = new Uint8Array(a, 0x7B, 3);
date[2] = seconds >>  0 & 0xFF;
date[1] = seconds >>  8 & 0xFF;
date[0] = seconds >> 16 & 0xFF;

Or, if the date is 111111111111111111111111

I write it this way:

0x7B 11111111

0x7C 11111111

0x7D 11111111

But according to Pokesav today is 14 of thirteenth month, 2193...

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...