os.date
Moderators: Shine, Insert_witty_name
if i had to make a guess, i'd say it was timezone related..
Chaosmachine Studios: High Quality Homebrew.
-
- Posts: 53
- Joined: Wed Aug 31, 2005 1:43 am
The timezone bug should be fixed in version 0.11.2Xtremes2004 wrote:Why does 12:00 = 0:00 and will this be fixed in a future version of Lua?
Do you mean 12:00 pm = 0:00? This is right, see the documentation at http://www.lua.org/manual/5.0/manual.html#5.7 and http://unixhelp.ed.ac.uk/CGI/man-cgi?strftime for a manual, which format strings you can use to use am/pm syntax.
-
- Posts: 53
- Joined: Wed Aug 31, 2005 1:43 am
Yes, 12:00 pm = 0:00 is what I ment, but I now see how it is set up after looking at the two links you provided. Thx
I was able to get the time and date feature formatted the way I like. :)
However I did have one question about it: %p shows the Prefix "AM" and "PM", and %P is supose to show the prefix "am" and "pm", but %P dont show anything.
Is there something else I can use to get it to show "am" and "pm"?
I was able to get the time and date feature formatted the way I like. :)
However I did have one question about it: %p shows the Prefix "AM" and "PM", and %P is supose to show the prefix "am" and "pm", but %P dont show anything.
Is there something else I can use to get it to show "am" and "pm"?
I want my money back!?
I don't know, perhaps this is a bug in the libc from PSPSDK, but as a workaround you could use string.tolower or you can built your own string, like in http://www.luaplayer.org/gallery/clock.lua.txt with "*t" and using the returned table.2Xtremes2004 wrote:However I did have one question about it: %p shows the Prefix "AM" and "PM", and %P is supose to show the prefix "am" and "pm", but %P dont show anything.
Is there something else I can use to get it to show "am" and "pm"?
-
- Posts: 12
- Joined: Sun Mar 12, 2006 8:27 am
-
- Posts: 31
- Joined: Sat Mar 04, 2006 1:35 am
There is still a problem with the timezone, see http://wiki.ps2dev.org/psp:lua_player:todos . Would be nice, if always the time would be used, which you can see in the normal PSP menu, but I don't know how to do it.