delorean icon indicating copy to clipboard operation
delorean copied to clipboard

add last second method to get the previous second.

Open myusuf3 opened this issue 12 years ago • 6 comments

This becomes extremely useful when trying to get the last second of the day, or maybe come up with a generic way to get this.

myusuf3 avatar Feb 21 '13 05:02 myusuf3

Arrow merged this with truncation into the floor and ceil operations. Maybe a good idea to "steal"?

ulope avatar Aug 30 '13 15:08 ulope

@ulope link to what are you are talking about?

myusuf3 avatar Aug 30 '13 15:08 myusuf3

nevermind!

myusuf3 avatar Aug 30 '13 15:08 myusuf3

Yeah sorry: http://crsmithdev.com/arrow/#arrow.arrow.Arrow.floor

ulope avatar Aug 30 '13 15:08 ulope

I have just fixed #38 that combined with the truncations should give you desire result. I might revisit this in the future, I do like idea of ceiling and floor but I currently hate arrow api. @mlew ideas on a nicer API for this?

myusuf3 avatar Aug 08 '15 17:08 myusuf3

I actually like the interface in arrow for this. I think it's generic and simple. I actually feel like start_of_day and end_of_day methods are too specific.

mlew avatar Aug 08 '15 19:08 mlew