DateAndTime/TimeStamp can't handle times with nanoseconds - although Time does

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

DateAndTime/TimeStamp can't handle times with nanoseconds - although Time does

Udo Schneider
All,

while writing a log file parser which parses log entries with
nano-second timestamps I hit the following issue:

Time instances can handle times down to nanosecond level. So something
like this

t := Time hour: 12 minute: 34 second: 56  nanoSecond: 1.

is valid and works w/o problems.

However DateAndTime and subclasses are not able to deal with Time
instances whose nanoCount is ~= 0. E.g. the following fails:

dt := DateAndTime date: Date today time: t.
ts := TimeStamp date: Date today time: t.

I've opened an issue for this:
http://code.google.com/p/pharo/issues/detail?id=1487

CU,

Udo


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project