Date 1935

Frank D. Engel, Jr. fde101 at fjrhome.net
Tue Apr 19 14:09:49 EDT 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

It may be due to an internal limitation of your operating system; 
looking up the "convert" command in the Rev docs reveals that the 
convert command uses date/time routines provided by the operating 
system, with the implication that some operating systems can only 
handle dates after a certain year.  Maybe with yours it is 1935.

Which operating system are you using?


On Apr 19, 2005, at 1:36 PM, Serge Ségu wrote:

> Hello
>
> The script  below is OK with HyperCard
> but  with DreamCard it returns a negative number with year < 1935
> what must I modify ?
>
> Best regards
> Serge
> --
> on mouseUp
>   answer calcAge ("1/1/1934")
> end mouseUp
>
> function calcAge x
>   put x into calc -- day of birth
>   convert calc to seconds
>   put ((the seconds - calc)/86400) into calc -- 86400 s = 1day
>   set itemDelimiter to "."
>   if calc < 30 then -- newborn
>     delete last item of calc
>     put " days." after calc
>   else
>     if calc ≥ 30 and calc ≤ 913 then -- enfant
>       put (calc / 30)  into calc
>       delete last item of calc
>       put" months." after calc
>     else -- child or adult
>       if calc >913 then
>         put( calc / 365)  into calc
>         delete last item of calc
>         put" years." after calc
>       end if
>     end if
>   end if
>   return calc
> end calcAge
>
> -- 
> Serge SÉGU
> AIM : mullowill
> http://wirinum.free.fr
> PGP: 0xB6132583
>
>
>
>
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
>
- -----------------------------------------------------------
Frank D. Engel, Jr.  <fde101 at fjrhome.net>

$ ln -s /usr/share/kjvbible /usr/manual
$ true | cat /usr/manual | grep "John 3:16"
John 3:16 For God so loved the world, that he gave his only begotten 
Son, that whosoever believeth in him should not perish, but have 
everlasting life.
$
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)

iD8DBQFCZUlt7aqtWrR9cZoRAlkBAKCBpqTy/7Lc4NC3Ai4AAddqffPbWgCfS4GA
knXJdCD54Pk7PDs916dUyPs=
=GYSp
-----END PGP SIGNATURE-----



___________________________________________________________
$0 Web Hosting with up to 200MB web space, 1000 MB Transfer
10 Personalized POP and Web E-mail Accounts, and much more.
Signup at www.doteasy.com



More information about the use-livecode mailing list