CurrentDate on non-English systems?

BlitzMax Forums/BlitzMax Programming/CurrentDate on non-English systems?

Grey Alien(Posted 2008) [#1]
Hi, the CurrentDate() function help says it returns the date like this:

DD MON YYYY (i.e. 10 DEC 2000).

What I'm wondering is if it's like that no matter what region Windows is set to. I'm assuming that it always returns English month names and the date always in that order. Can anyone confirm this please?

If it always returns dates in English in that format (i.e month name 3 chars long) then I can write some conversion functions that change the month to German, French, Spanish etc.

Thanks!


Zeke(Posted 2008) [#2]
in finland gmt+2 result:
04 Feb 2008
and im thkingin that too..
hmm...

Tammikuu
Helmikuu
Maaliskuu
Huhtikuu
Toukokuu
Kesäkuu
Heinäkuu
Elokuu
Syyskuu
Lokakuu
Marraskuu
Joulukuu

^^ all months in finnish'

so Tammikuu is January, February is Helmikuu

EDIT: NOW 12 months...


Grey Alien(Posted 2008) [#3]
Thanks. What is the name for February in Finnish please?


nawi(Posted 2008) [#4]
Helmikuu.

Btw, I found a resource that might interest you:
http://washingtonmo.com/1904/months.htm

Although I'm not sure if some of those words have evolved in the last 100 years.


JazzieB(Posted 2008) [#5]
@Zeke, am I missing something or are there 13 months there?!


Brucey(Posted 2008) [#6]
I'm sure there are modules with localized months in them!


popcade(Posted 2008) [#7]
I'd want something like UNIX timestamp which used in php a lot, it's independent from language and easy to convert.


Grey Alien(Posted 2008) [#8]
OK thanks all.

yeah 13 months, weird!

Brucey: I'm sure there are ;-) I don't mind writing my own as it's only for a couple of languages and I want it integrated with my code.


Zeke(Posted 2008) [#9]
sorry folks.. now updated...


Brucey(Posted 2008) [#10]
Hungarian months with the day of the week that date falls on ;-)
Executing:locale_example.debug

2007-január-01 ... hétfő
2007-február-01 ... csütörtök
2007-március-01 ... csütörtök
2007-április-01 ... vasárnap
2007-május-01 ... kedd
2007-június-01 ... péntek
2007-július-01 ... vasárnap
2007-augusztus-01 ... szerda
2007-szeptember-01 ... szombat
2007-október-01 ... hétfő
2007-november-01 ... csütörtök
2007-december-01 ... szombat

Process complete


<EDIT> Except the forums don't like some of the UTF-8 characters :-p


Yan(Posted 2008) [#11]
http://www.blitzbasic.com/Community/posts.php?topic=66191#740528

??


GfK(Posted 2008) [#12]
It would be better if CurrentDate() was replaced with something that returned the month (as well as day and year) in numeric format. That way you could output the text to anything you wanted.

I think Brucey has a module for date stuff but I'm semi-drunk at the moment so I could be wrong.


Czar Flavius(Posted 2008) [#13]
http://washingtonmo.com/1904/months.htm

Look at the Indian months..
I take it they are Native American?


Bremer(Posted 2008) [#14]
Danish months in order:

Januar
Februar
Marts
April
May
Juni
Juli
August
September
Oktober
November
December

CurrentDate() on a Danish installed winXP gives the following output "04 Feb 2008"


Trader3564(Posted 2008) [#15]
Dutch months

Januari
Februari
Maart
April
Mei
Juni
Juli
Augustus
September
Oktober
November
December


GfK(Posted 2008) [#16]
I think he's asking what Blitzmax's CurrentDate() returns, rather than just asking for month names in various languages.