Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding 1 year to a date
Message
De
18/10/2000 15:00:02
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00430291
Message ID:
00431081
Vues:
11
>>>And GOMONTH() still does not work correctly. ;(
>>>Try following lines:
>>>
>>>SET STRICTDATE TO 0
>>>tt = {01/01/0003}
>>>? tt && shows correct date - 01/01/0003
>>>? gomonth(tt,12) && shows empty date - \ \
>>>
>>>GOMONTH() have such behaviour up to {01/01/1752}
>>>How do you like this bug? ;)
>>
>>Hardly a bug. Dates following the Gregorian Calendar did not exist before 1752, so what's it supposed to do, guess? :)
>
>
>Than, how you explain following???
>tt = {01/01/0003}
>? tt && shows correct date - 01/01/0003
>
>VFP have ability to store all such dates. Some functions even return correct values for them. But GOMONTH() didn't work.

That maybe true, but are those dates truly correct? There was a skip in the calendar back then (when and how many days, I'm not exactly sure of, and I'm too lazy to look it up. :)), but I don't think that VFP correctly calculates the day of the week for those dates.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform