🔵 🔵 🔵


Primary

၊၊||၊|။

datetime.now() ⚬|Documentation|1st|20251021143107-00-⌔

datetime — Basic date and time types — Python 3 documentation#datetime.datetime.now

method classdatetime.now(tz=None)

Return the current local date and time.

If optional argument tz is None or not specified, this is like today(), but, if possible, supplies more precision than can be gotten from going through a time.time() timestamp (for example, this may be possible on platforms supplying the C gettimeofday() function).

If tz is not None, it must be an instance of a tzinfo subclass, and the current date and time are converted to tz ’s time zone.

This function is preferred over today() and utcnow().

Note: Subsequent calls to datetime.now() may return the same instant depending on the precision of the underlying clock.

Printed 2026-06-28.

(echo:: @ )

Link to original

Secondary

• • •