Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

back from [idate]

 [1/4] from: hallvard::ystad::oops-as::no at: 23-Mar-2004 1:03


Hi list Has anyone got a quick little function to get idates back into the date! datatype? (Maxim, Tim, see the brackets in the subject line?) Thanks, HY

 [2/4] from: maximo:meteorstudios at: 22-Mar-2004 19:19


LOL!!! PS I removed them... I don't want this to be logged ;-) -MAx --- all members combined, this signature will have waisted almost 1MB of bandwidth and an hour of human time.

 [3/4] from: SunandaDH:aol at: 22-Mar-2004 19:29


Hallvard:
> Has anyone got a quick little function to get idates back into the date! > datatype?
No, but I have a quick hack: xx: to-idate now loop 2 [replace skip xx 5 " " "/"] type? first load skip xx 5 Sunanda

 [4/4] from: hallvard:ystad:oops-as:no at: 23-Mar-2004 10:42


Dixit [SunandaDH--aol--com] (01.29 23.03.2004):
>Hallvard: >> Has anyone got a quick little function to get idates back into the date! >> datatype? >No, but I have a quick hack:
Yes, of course. And then we can make this little enhancement to to-date: to-date: func [value /idate][ either idate [ replace/all skip value 5 " " "/" load skip value 5 ] [ to date! :value ; original to-date ] ] which gives us this (from console):
>> to-date to-idate now
** Script Error: Invalid argument: Tue, 23 Mar 2004 10:40:19 +0100 ** Where: to-date ** Near: to date! :value
>> to-date/idate to-idate now
== 23-Mar-2004/10:40:28+1:00 HY