Re: Date Items

2004-04-08 Thread Dom
Alain Djemaa <[EMAIL PROTECTED]> wrote:

> Recently, I tried date format, like this, in the message box :
> 
> get the internet date
> put it into laDate
> convert it to dateItems
> put "LA DATE" && laDate && "LES ITEMS" && it
> 
> The results :
> 
> LA DATE Thu, 8 Apr 2004 16:24:34 +0100 LES ITEMS 2004,4,8,17,24,34,5
> 
> Let's compare :
> 16:24 and ...,17,24,...
> 
> So, it's possible to correct by subtracting 1 for obtaining the true item,
> but it's not very elegant, is it ?

This subject was already discussed here...
Héhé... on en a déjà causé ici ;-)

In short: this seems to affect only OS X in Europe during the daylight
saving period
On voit le "bug" uniquement en heure d'été !

It is not clear wether it is a Revolution "feature" / or it is a Mac OS
X bug (discussion on MacFixIt)

-- 
Vous parlez français ? faites un tour sur le groupe francophone !
[EMAIL PROTECTED]
Jetez un oeil sur RevoBlog  !
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Date Items

2004-04-08 Thread Alain Djemaa
Bonjour tout le monde.
(Hello, everybody and not "Hello, World" !)

I'm beginning to learn Transcript.
I'm not computer scientist but a needing tools amateur.

So, I try like a child.

Recently, I tried date format, like this, in the message box :

get the internet date
put it into laDate
convert it to dateItems
put "LA DATE" && laDate && "LES ITEMS" && it

The results :

LA DATE Thu, 8 Apr 2004 16:24:34 +0100 LES ITEMS 2004,4,8,17,24,34,5

Let's compare :
16:24 and ...,17,24,...

So, it's possible to correct by subtracting 1 for obtaining the true item,
but it's not very elegant, is it ?

Have I to set a parameter before using dates ?

Merci beaucoup.

Alain.



___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Date Items

2002-10-12 Thread Yves Coppé
Yves,

Check out the "centuryCutoff" property... perhaps that will do what you
want.

Ken Ray
Sons of Thunder Software
Email: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.com/




A command I didn't know and which does exactly what I hoped.

Thanks.
--
Greetings.

Yves COPPE

Email : [EMAIL PROTECTED]
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: Date Items

2002-10-12 Thread Jeanne A. E. DeVoto
At 8:43 AM -0700 10/12/2002, Yves Coppé wrote:
>set useSystemDate to true
>put "05/06/1927" into startDate
>convert startDate to dateitems
>set useSystemDate to false
>answer startDate
>
>the answer is "2027,06,05,0,0,7"
>I watch "1927,06,05,0,0,7"
>
>so the person with this birthdate is 100 years younger (not yet born !!)
>Fine 

;-)

If you set the centuryCutoff to 02 (or any number less than 27), you will
get the correct result of 1927. I think this is a bug (if you have 4-digit
years turned on then the system date should respect them and not ignore the
century), but this will work around it and avoid making people 100 years
too young.

--
Jeanne A. E. DeVoto ~ [EMAIL PROTECTED]
Runtime Revolution Limited - The Solution for Software Development
http://www.runrev.com/


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: Date Items

2002-10-12 Thread Ken Ray
Yves,

Check out the "centuryCutoff" property... perhaps that will do what you
want.

Ken Ray
Sons of Thunder Software
Email: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.com/

- Original Message -
From: "Yves Coppé" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, October 12, 2002 10:43 AM
Subject: Date Items


> Hi,
>
>
> I experiment a strange behavior
>
> I use a French system Mac OS X 10.1.5
>
>
>
> in continental date system, "05/06/1927" =
> june the fifth of 1927
>
> When I type the following code :
>
> set useSystemDate to true
> put "05/06/1927" into startDate
> convert startDate to dateitems
> set useSystemDate to false
> answer startDate
>
>
> the answer is "2027,06,05,0,0,7"
> I watch "1927,06,05,0,0,7"
>
> so the person with this birthdate is 100 years younger (not yet born !!)
> Fine 
>
> How can I get the good answer !
>
> Any idea ???
>
> Thanks for your help
> --
> Greetings.
>
> Yves COPPE
>
> Email : [EMAIL PROTECTED]
> ___
> use-revolution mailing list
> [EMAIL PROTECTED]
> http://lists.runrev.com/mailman/listinfo/use-revolution
>

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: Date Items

2002-10-12 Thread Rob Cozens
How can I get the good answer !


Salut Yves!

Create the dateItem string yourself from the birth date:

get birthYear&comma&birthMonth&comma&birthDay&",0,0,0,0"

Assuming birthYear includes the century, that's it.

If you need the correct day of week in item seven,

convert it to dateItems

following the first statement will do the job.
--

Rob Cozens
CCW, Serendipity Software Company
http://www.oenolog.com/who.htm

"And I, which was two fooles, do so grow three;
Who are a little wise, the best fooles bee."

from "The Triple Foole" by John Donne (1572-1631)
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Date Items

2002-10-12 Thread Yves Coppé
Hi,


I experiment a strange behavior

I use a French system Mac OS X 10.1.5



in continental date system, "05/06/1927" =
june the fifth of 1927

When I type the following code :

set useSystemDate to true
put "05/06/1927" into startDate
convert startDate to dateitems
set useSystemDate to false
answer startDate


the answer is "2027,06,05,0,0,7"
I watch "1927,06,05,0,0,7"

so the person with this birthdate is 100 years younger (not yet born !!)
Fine 

How can I get the good answer !

Any idea ???

Thanks for your help
--
Greetings.

Yves COPPE

Email : [EMAIL PROTECTED]
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution