The PHP DateTime Class

As a developer, you're going to run into situations where you need to perform some kind of operation on a date or time. You might need to see how far apart two dates are, add several days to the date, or convert a string sent to us by an end user into something we can […]

The post The PHP DateTime Class appeared first on php[architect].

/2022/10/the-php-datetime-class/

Creato 2y | 24 ott 2022, 05:20:45


Accedi per aggiungere un commento

Altri post in questo gruppo

Faster Database Performance with Denormalization

Database Denormalization For Performance In the past, we’ve discussed using methods to normalize our database to reduce data redundancy and decrease bugs. One downside to normalizing our data

28 gen 2025, 21:20:05 | PHP Architect
Using PHP 8.4’s Lazy Objects

One of the more interesting features added to PHP 8.4 is the ability to create Lazy Objects. Lazy Objects allow us to defer the initialization of an object until one of its properties is accessed.

27 gen 2025, 19:50:04 | PHP Architect
PHP Podcast 2025.01.23: Discussing PHP’s Hidden Treasures

This week on the PHP Podcast, Eric and John talk about PHP Tek 2025, Community Corner Podcast, Convince Your Boss to attend PHP Tek, and more… This week on the PHP Podcast, Eric and John dis

24 gen 2025, 03:50:02 | PHP Architect
PHP Podcast 2025.01.16

This week on the PHP Podcast, Eric and John talk about PHP Tek 2025, Community Corner Podcast, Convince Your Boss to attend PHP Tek, and more… Links from the show: Application Monitoring & Er

17 gen 2025, 04:40:09 | PHP Architect
Using The Log Facade to Debug Production Bugs in Laravel 11

One of the features of Laravel that makes it a real joy to work with is its built-in logging functionality. This can be a real boon if we’re trying to troubleshoot a problem in production bec

17 gen 2025, 04:40:07 | PHP Architect
Community Corner: Neon With Mahmoud Abdelwahab

In this video, Scott Talks with Mahmoud Abdelwahab about the open-source cloud-based Postgres replacement Neon. Links: Neon – https://neon.tech HoneyBadger.io – https://HoneyBadger.io O

16 gen 2025, 19:30:05 | PHP Architect
PHP Podcast 2025.01.02

This week on the PHP Podcast, Eric and John talk about PHP Tek 2025, PHP RFCs, TweakPHP, Ghostty, PsySH, new Git Commands, Lando, SearXNG, and more… Links from the show: PsySH PHP[TEK] 2025 &

3 gen 2025, 02:20:03 | PHP Architect