Adding seconds to a Timestamp has limitations on Mac OS X

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Adding seconds to a Timestamp has limitations on Mac OS X

Rob Vens-2
I am using VW 7.7
Attempting to add, say 1272359940000 seconds to a Timestamp results in an exception. One would expect a proper computation, would one not?

Unhandled exception: The timestamp cannot be represented in unix 32-bit seconds.
MacOSXSystemSupport(Object)>>error:
MacOSXSystemSupport(UnixSystemSupport)>>errorTimestampOutOfRange
MacOSXSystemSupport(UnixSystemSupport)>>checkTimestamp:
MacOSXSystemSupport(UnixSystemSupport)>>timestampToSeconds:
SystemTimeZone>>timestampToSeconds:
Timestamp>>asSeconds
Timestamp>>asNanoseconds
Timestamp>>sumFromDuration:
Timestamp>>+
Timestamp>>addSeconds:
----------------------------------------------------------------------
MacOSXSystemSupport(Object)>>error:
Receiver:
a MacOSXSystemSupport
Arguments:
aStringOrMessage = #UnixTimestampOutOfRange>>'The timestamp cannot be represented in unix 32-bit seconds.'<<#dialogs
Context PC = 6

----------------------------------------------------------------------
MacOSXSystemSupport(UnixSystemSupport)>>errorTimestampOutOfRange
Receiver:
a MacOSXSystemSupport
Context PC = 10

----------------------------------------------------------------------
MacOSXSystemSupport(UnixSystemSupport)>>checkTimestamp:
Receiver:
a MacOSXSystemSupport
Arguments:
aTimestamp = 1 januari 1901 00:00:00
Context PC = 14

----------------------------------------------------------------------
MacOSXSystemSupport(UnixSystemSupport)>>timestampToSeconds:
Receiver:
a MacOSXSystemSupport
Arguments:
aTimestamp = 1 januari 1901 00:00:00
Temporaries:
timeinfo = nil
totalSeconds = nil
Context PC = 17

----------------------------------------------------------------------
SystemTimeZone>>timestampToSeconds:
Receiver:
a SystemTimeZone
Arguments:
aTimestamp = 1 januari 1901 00:00:00
Context PC = 6

----------------------------------------------------------------------
Timestamp>>asSeconds
Receiver:
a Timestamp
Instance Variables:
year = 1901
month = 1
day = 1
hour = 0
minute = 0
second = 0
millisecond = 0
Context PC = 6

----------------------------------------------------------------------
Timestamp>>asNanoseconds
Receiver:
a Timestamp
Instance Variables:
year = 1901
month = 1
day = 1
hour = 0
minute = 0
second = 0
millisecond = 0
Context PC = 4

----------------------------------------------------------------------
Timestamp>>sumFromDuration:
Receiver:
a Timestamp
Instance Variables:
year = 1901
month = 1
day = 1
hour = 0
minute = 0
second = 0
millisecond = 0
Arguments:
aDuration = 14726388 days 4 hours 40 minutes
Context PC = 7

----------------------------------------------------------------------
Timestamp>>+
Receiver:
a Timestamp
Instance Variables:
year = 1901
month = 1
day = 1
hour = 0
minute = 0
second = 0
millisecond = 0
Arguments:
aDuration = 14726388 days 4 hours 40 minutes
Context PC = 5

----------------------------------------------------------------------
Timestamp>>addSeconds:
Receiver:
a Timestamp
Instance Variables:
year = 1901
month = 1
day = 1
hour = 0
minute = 0
second = 0
millisecond = 0
Arguments:
secondsCount = 1272359940000
Context PC = 6

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: Adding seconds to a Timestamp has limitations on Mac OS X

Holger Kleinsorgen-4
see the recent thread "vw 7.7 support for Windows 2000"

http://www.parcplace.net/list/vwnc-archive/1005/threads.html#00024

> I am using VW 7.7
> Attempting to add, say 1272359940000 seconds to a Timestamp results in
> an exception. One would expect a proper computation, would one not?
>
> Unhandled exception: The timestamp cannot be represented in unix 32-bit
> seconds.
> MacOSXSystemSupport(Object)>>error:
> MacOSXSystemSupport(UnixSystemSupport)>>errorTimestampOutOfRange
> MacOSXSystemSupport(UnixSystemSupport)>>checkTimestamp:
> MacOSXSystemSupport(UnixSystemSupport)>>timestampToSeconds:
> SystemTimeZone>>timestampToSeconds:
> Timestamp>>asSeconds
> Timestamp>>asNanoseconds
> Timestamp>>sumFromDuration:
> Timestamp>>+
> Timestamp>>addSeconds:
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc