Top "Date-math" questions

What's the correct None or null entry for a datetime.datetime object in Python?

I'm loading some dates into mongodb using pymongo. Because pymongo does automatic conversions to BSON, I'm working with datetime's datetime.…

python mongodb datetime nonetype date-math
Best practice for PHP/MySQL Appointment/Booking system

I need some people to battle a "best practice" for a PHP/MySQL appointment system for a hairdresser I'm currently …

php mysql appointment date-math
how to add 48 hours to a timestamp

I am using this code to minus 48 hours from a timestamp echo date($result2["datetime"], strtotime("-48 hours")); This works …

php date date-math
PHP Converting DateInterval to int

I'm using this code: $due_date = new DateTime($_POST['due_date']); $today = new DateTime(); $months = $due_date->diff($today); $…

php date datetime dateinterval date-math
Python requests: download only if newer

What is the standard pythonic way to download a new file from a server only if the server copy is …

python python-requests date-math
Subtract months from a given date in Matlab

I need to subtract 21 months from a given date. My solution as given below only takes me to the first …

matlab date date-math
Php, date manipulation?

I am new to php. And I would like to know some of the date manipulation things in php. // Get …

php date date-math