Script Library: 1213 scripts
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

Discussion posts for script date-time.r

1
crazyaxe
23-Apr-2012 6:22
REBOL

date-dif

Contents:

Hi, is it correct the date-dif function? It surprise me the following result:

date-dif 5/10/1978  5/9/1978
-30

why is it negative?

date-dif/y 5/10/1978  5/9/1978
-1

???

date-dif/ym 5/10/1978  5/9/1978
11

???

date-dif/ym   5/9/1978 5/10/1978
1

???

date-dif/y   5/9/1978 5/10/1978
0

OK this is correct for me.

MakeDoc2 by REBOL- 23-Apr-2012