← All docs

getdate()

Returns date/time information.

getdate()

function getdate(?int $timestamp = null): array

Returns date/time information.

Parameters:

  • $timestamp (?int), default null, optional

Returns: array

Availability

No examples yet — check examples/ and showcases/ for usage patterns.

Internals

For how getdate is implemented in the compiler, see the internals page.