views:

107

answers:

1

Today is April 25, 2009 which in US format is abbreviated month-day-year, so today is 04-25-09. This line

> CurrentTime().toString("%m-%d-%y")

should print "04-25-09". Instead it prints "05-25-09". Why is that? According to the docs CurrentTime() returns a TimeStamp instance. TimeStamp has a toString() method which accepts a date/time format as a parameter, which is supposed to be in strftime format. Is there something wrong with my understanding of the code? I am using Falcon 0.8.14.2("Vulture") on Windows Vista (64-bit)

[2]: http://linux.die.net/man/3/strftime strftime format

+3  A: 

I also posted this question on the Falcon Google Group. Apparently, this is an issue with Falcon itself and is fixed in version 0.9.1. Version 0.9.1 will be officially released in a week or two according to the response I received from Giancarlo Niccolai, the inventor of the Falcon programming language.

ssakl
I have confirmed that the newer version does, indeed, fix this issue.
ssakl