REBOL3 tracker
  0.9.12 beta
Ticket #0001413 User: anonymous

Project:



rss
TypeBug Statustested Date3-Jan-2010 12:16
Versionalpha 95 CategoryDatatype Submitted bymeijeru
PlatformAll Severityminor Prioritynormal

Summary Time overflow/underflow on date literals is not always correctly computed
Description Time overflow/underflow is correctly handled when date variables have their time component set to a value outside 0:00 .. 23:59.

When specifying times outside these limits in a date literal, the situation is as follows:
- positive time values > 23:59 are consistently refused
- all negative time values are accepted, but no underflow is computed unless non-zero time-zone is specified (!)
Example code
>> 3-Jan-2010/30:00
** Syntax error: invalid "date" -- "3-Jan-2010/30:00"
>> 3-Jan-2010/30:00+1:0
** Syntax error: invalid "date" -- "3-Jan-2010/30:00+1:0"
>> 3-Jan-2010/-30:00
== 3-Jan-2010/-30:00
>> 3-Jan-2010/-30:00+1:0
== 1-Jan-2010/18:00+1:00

Assigned ton/a Fixed inalpha 97 Last Update8-Feb-2010 03:07


Comments
(0001954)
Carl
4-Feb-2010 16:23

In DATE! form, negative time is now an error.

Date User Field Action Change
8-Feb-2010 03:07 BrianH Status Modified built => tested
4-Feb-2010 16:23 carl Fixedin Modified => alpha 97
4-Feb-2010 16:23 carl Status Modified reviewed => built
4-Feb-2010 16:23 carl Comment : 0001954 Added -
12-Jan-2010 21:05 carl Status Modified submitted => reviewed
3-Jan-2010 12:26 meijeru Description Modified -
3-Jan-2010 12:26 meijeru Code Modified -
3-Jan-2010 12:16 meijeru Ticket Added -