Issue 5317 in pharo: Date = implementation weird result

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

Issue 5317 in pharo: Date = implementation weird result

pharo
Status: New
Owner: ----

New issue 5317 by [hidden email]: Date = implementation weird result
http://code.google.com/p/pharo/issues/detail?id=5317

Pharo1.4a
Latest update: #14284

Steps to reproduce:

TimeStamp now date = Date today ifFalse:[Error signal: 'Holy dates Batman!']



_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 5317 in pharo: Date = implementation weird result

pharo

Comment #1 on issue 5317 by [hidden email]: Date = implementation  
weird result
http://code.google.com/p/pharo/issues/detail?id=5317

DateAndTime now asDate = Date today ifTrue: [ self inform: 'OK' ].

The start inside the dates are of a different class (TimeStamp and  
DateAndTime).

Maybe these should compare as equal ?

The more I look at these classes the weirder they seem ;-)



_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 5317 in pharo: Date = implementation weird result

pharo
Updates:
        Status: Closed

Comment #2 on issue 5317 by [hidden email]: Date = implementation  
weird result
http://code.google.com/p/pharo/issues/detail?id=5317

so should this be closed?


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 5317 in pharo: Date = implementation weird result

pharo

Comment #3 on issue 5317 by [hidden email]: Date = implementation weird  
result
http://code.google.com/p/pharo/issues/detail?id=5317

There was another issue, where I proposed a slice with a fix for this...

http://code.google.com/p/pharo/issues/detail?id=2872


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 5317 in pharo: Date = implementation weird result

pharo
Updates:
        Status: Duplicate
        Mergedinto: 2872

Comment #4 on issue 5317 by [hidden email]: Date = implementation weird  
result
http://code.google.com/p/pharo/issues/detail?id=5317

(No comment was entered for this change.)


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