• Welcome to Valhalla Legends Archive.
 

System\Time Logged 0x26 Help

Started by Spilled, February 17, 2005, 10:29 AM

Previous topic - Next topic

Spilled

I just recently had help with packet 0x26 and had a topic going but i didnt want to revive a dead topic, im havin problems again with this Key, when i recieve that data it isnt in high/low format, how would i convert this one into months/days/hours format? i would have to convert to local time wouldnt i? all help is appreciated thanks everyone.

Arta


Spilled

I dunno im lost on what to do with this data because it doesnt come in high low format like System/Account Created does =\

Arta

If it's a time_t then it's the number of seconds the user has spent online.

Spilled

#4
Nah, i doubt it is because the numbers not big enough... i load it 24/7 the number would be huge if it was in seconds =\

Edit:


17  Hide  Hide  76  Recv 
0000  FF 26 4C 00 01 00 00 00 04 00 00 00 45 00 00 00    .&L.........E...
0010  73 70 69 6C 6C 65 64 5B 64 77 5D 00 32 39 36 35    spilled[dw].2965
0020  34 38 31 35 20 32 39 38 31 39 31 31 30 31 30 00    4815 2981911010.
0030  32 39 36 39 33 32 31 39 20 32 37 30 31 39 32 35    29693219 2701925
0040  30 37 36 00 36 38 37 36 34 31 30 00                076.6876410.

6876410 is the System/Time Logged Key because it is the last chr(0) split of the incoming data, no way thats in time_t format =\ Any ideas people?

UserLoser.

It's the number of seconds you have spent online.

Arta

That value is 1910 hours, or 79 days, or 11 weeks, or 2.75 months. Seems ok to me.

Spilled

Hrmmm.. i c now thanks userloser and arta (once again) appreciated =\

Zakath

It's not a time_t, although it is the number of seconds you've been online. What you are receiving is a FILETIME structure.  Parsing those has been discussed before; search for it.
Quote from: iago on February 02, 2005, 03:07 PM
Yes, you can't have everybody...contributing to the main source repository.  That would be stupid and create chaos.

Opensource projects...would be dumb.

CrAz3D

Quote from: Zakath on February 17, 2005, 05:55 PM
It's not a time_t, although it is the number of seconds you've been online. What you are receiving is a FILETIME structure.  Parsing those has been discussed before; search for it.
He's already posted & recieved answers about that.  He was wondering about the Time Logged & how to parse that, if you had read his post. 
rebundance - having or being in excess of sheer stupidity
(ré-bun-dance)
Quote from: Spht on June 22, 2004, 07:32 PMSlap.
Quote from: Adron on January 28, 2005, 09:17 AMIn a way, I believe that religion is inherently evil, which includes Christianity. I'd also say Christianity is eviller than Buddhism (has more potential for evil).
Quote from: iago on April 19, 2005, 01:06 PM
CrAz3D's ... is too big vertically, at least, too big with ... iago ...

Arta

Quote from: Zakath on February 17, 2005, 05:55 PM
It's not a time_t, although it is the number of seconds you've been online. What you are receiving is a FILETIME structure.  Parsing those has been discussed before; search for it.

A FILETIME structure wouldn't contain the number of seconds spent logged on. It would contain the number of 100ns intervals logged on.

I'm pretty sure it is a time_t, but I haven't checked *shrug*

Zakath

The profile response to a time logged request comes in the form of a FILETIME. I was under the impression that was what he was dealing with...I don't know where he'd get a response that has a time_t in it.
Quote from: iago on February 02, 2005, 03:07 PM
Yes, you can't have everybody...contributing to the main source repository.  That would be stupid and create chaos.

Opensource projects...would be dumb.