| ▲ | tikotus 7 hours ago | |
I'm doing PHP for the first time in years. I needed a function that returns the date of last week's Monday. Turns out PHP has a funky date querying language. I can just do: $today->modify('monday last week'). Makes me happy. | ||
| ▲ | Aachen 2 hours ago | parent | next [-] | |
[It has been (1) days since the last time that I needed strtotime] Don't know how to do this without PHP, so I actually use it on the shell inline between a bunch of Bash. I assume that's the same function with new syntactic sugar | ||
| ▲ | philo23 5 hours ago | parent | prev | next [-] | |
The relative date formats are super useful. It can get a bit confusing when there's timezones involved though. https://www.php.net/manual/en/datetime.formats.php#datetime.... | ||
| ▲ | is_true 7 hours ago | parent | prev | next [-] | |
PHP is always there for you. | ||
| ▲ | spiderfarmer 7 hours ago | parent | prev [-] | |
PHP is just awesome. | ||