News for hackers. Stuff that matters.
Re:Pendulum – Python datetimes made easy by d0mine on Tuesday August 16, 2016 @11:42PM (#12302387)
Does Time.now + 1.day return the time 24 hours into the future or does it return the same time (hour:minutes) but the next date? (it may be more or less than 24 hours from now if the UTC offset has changed for any reason e.g., due a DST transition). How do you express these different cases in Ruby explicitly?

Related: http://stackoverflow.com/questions/441147/how-can-i-subtract...

There are no comments on this comment yet.