Issue 3604 in pharo: Timespan created from Date>>to: missing last date

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

Issue 3604 in pharo: Timespan created from Date>>to: missing last date

pharo
Status: New
Owner: ----

New issue 3604 by [hidden email]: Timespan created from Date>>to:  
missing last date
http://code.google.com/p/pharo/issues/detail?id=3604

We are currently working on version 1.2, so please verify your issue with
the latest 1.2 Unstable version  before reporting it - we improved a lot
the system.

If you fill an issue for the first time, please read "How to report bugs"
at http://www.pharo-project.org/community/issue-tracking

Pharo image: Pharo-core
Pharo core version: 1.2-12324
Virtual machine used: Mac OS X Squeak 4.2.2beta1U


Simplest version
-------------
(Date today to Date today) includes: Date today. " false "
vs
(5 to: 5) includes: 5. " true "

Another version
------------
timespan := (Date year: 2011 month: #January day: 23) to: (Date year: 2011  
month: #January day: 28).
timespan end. " 2011-01-27T23:59:59.999999999+13:00 "

My particular problem was with the following (but the root cause is the  
same)
------------------------------------------------------------
range := Date today - 5 days to: Date today.
range dates detect: [ :day | day = Date today ] ifNone: [ nil ]. " nil "





Reply | Threaded
Open this post in threaded view
|

Re: Issue 3604 in pharo: Timespan created from Date>>to: missing last date

pharo

Comment #1 on issue 3604 by [hidden email]: Timespan created from  
Date>>to: missing last date
http://code.google.com/p/pharo/issues/detail?id=3604

Opps - Simplest version should of course read

(Date today to: Date today) includes: Date today. " false "


Reply | Threaded
Open this post in threaded view
|

Re: Issue 3604 in pharo: Timespan created from Date>>to: missing last date

pharo
Updates:
        Status: Accepted

Comment #2 on issue 3604 by [hidden email]: Timespan created from  
Date>>to: missing last date
http://code.google.com/p/pharo/issues/detail?id=3604

(No comment was entered for this change.)