Re: Troubles with the date class (doc)
Re: Troubles with the date class (doc)
- Subject: Re: Troubles with the date class (doc)
- From: Yvan KOENIG <email@hidden>
- Date: Tue, 4 Jul 2006 18:57:46 +0200
Le 4 juil. 2006, à 18:34, Emile Schwarz a écrit :
The AppleScript (Old) Language Reference, for the date class states
incorrectly:
time string of date "March 3, 1999"
--result: "12:00:00 AM"
Of course, in my French 10.4.7, I have to write:
time string of date "3 mars 1999"
and that value is translated to:
time string of date "mercredi 3 mars 1999 0:00:00"
and naturally, the returned value is changed to:
"0:00:00"
Hello
Just a few words to say that on my machine I get the result described
by Emile.
I didn't check the Language Reference manual because for me it's easier
to read the french "unofficial" version which states:
Date
Une valeur complète de la classe Date indique le jour de la semaine, la
date (jour du mois, mois et l’année) et l’heure ; si vous fournissez
une date qu’avec seulement quelques unes de ces informations,
AppleScript complète les informations manquantes par des valeurs par
défault.
date "26/11/2001"
--résultat : date "lundi 26 novembre 2001 00:00:00"
It is clear that the sample is given for a machine whose setting is :
display hours with two digits !
Yvan KOENIG
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden