delorean
delorean copied to clipboard
add last second method to get the previous second.
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.
Arrow merged this with truncation into the floor and ceil operations. Maybe a good idea to "steal"?
@ulope link to what are you are talking about?
nevermind!
Yeah sorry: http://crsmithdev.com/arrow/#arrow.arrow.Arrow.floor
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?
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.