Hello Neko,
I am going to add some simple APIs to Neko to allow converting
between local time and GMT time. I have two ways of doing that:
- write two more functions: date_get_gmt_day and date_get_gmt_time,
accepting an int32 and returning corresponding day-month-year and
hour-min-sec structures
- write another two functions: date_local_to_gmt and
date_gmt_to_local, accepting and returning int32's.
I am more in favor of the first option as the second one can lead to
unpredictable results if converting a gmt time to gmt once more or
whatever, while the first way is more error-preventing. However, I'd
like to understand what you Nicolas like more too.
--
Best regards,
Michael mailto:[EMAIL PROTECTED]
--
Neko : One VM to run them all
(http://nekovm.org)