[REBOL] Re: Newbie Q: System time?
From: sunandadh:aol at: 24-Jun-2002 16:30
Matt:
>>> print now/time
> time
Welcome to Rebol!
That code all looks correct -- except the result is wrong.
Have you accidentally redefined 'now as something else, eg:
now: "time"
Check by using the 'source command:
source now
An unaltered 'now has this source:
>> source now
now: native [
"Returns the current local date and time."
/year "Returns the year only."
/month "Returns the month only."
/day "Returns the day of the month only."
/time "Returns the time only."
/zone "Returns the time zone offset from GMT only."
/date "Returns date only."
/weekday {Returns day of the week as integer (Monday is day 1).}
/precise "Use nanosecond precision"
]
Also, stop yourself accidentally redefining system words (if that is what you
have done), by putting:
protect-system
in your user.r.
And if it isn't that, I'm left puzzled,
Sunanda.