Skip to content
Jan Hermann edited this page Oct 19, 2026 · 1 revision

🕐

Current time formatting in PHP: namespace Timely\Times.

PHP class Timely\Times\Helper with basic time and date formatting:

  • date(): Instance method returning the current date in d.m.Y format.
  • format(): Static method returning the current time in H:i:s format.
use Timely\Times\Helper;

Helper::format(); // "14:05:09"
(new Helper())->date(); // "19.10.2026"

This namespace is PHP only and has no browser demo. For clocks in the browser see Clocks.

Clone this wiki locally