-
timestamp in Symbian
Hi....
Does something exist to use the timestamp in Symbian, in order to indicate a date/time information as a long number that is possible in other programming languages such as PHP, Java, etc. and to convert this information to/from a date class ?
In particular, I need record the time information of the reception of data messages from the net and I'd like getting a long representing the date/time of the instant and insert that into my data structure.
Can anyone suggest me something ?
Thanks....
-
Re: timestamp in Symbian
[QUOTE=keanu77]Hi....
...
Can anyone suggest me something ?
Thanks....[/QUOTE]
Sure, read the SDK documentation and look for TTime.
-
Re: timestamp in Symbian
[QUOTE=ltomuta]Sure, read the SDK documentation and look for TTime.[/QUOTE]
Thanks, it's what I was searching....
Another suggestion : how can I get the [B][U]present[/U][/B] time information, a function such as Now() of other languages, for example ?
Thanks ....
-
Re: timestamp in Symbian
Sure, read the SDK documentation and look for TTime. :) Do you need HomeTime() or UniversalTime() ?
-
Re: timestamp in Symbian
It seems, that TTime represents time from 0 year, but not from 1970 year like Unix timestamp. How to convert? Substrate some seconds?
-
Re: timestamp in Symbian
Yes, substraction is the way. Some ideas are in [url]http://www.developer.nokia.com/Community/Discussion/showthread.php?227680-UNIX-EPOCH-SYMBIAN-EPOCH[/url] or [url]http://www.developer.nokia.com/Community/Discussion/showthread.php?237286-timestamp[/url]