ROUTMIO_DEV

TOOLS

DDL GeneratorDDL → ERDDummy Data GeneratorRegex TesterJSON FormatterBase64 ConverterTimestamp ConverterCron BuilderMeeting Minutes

DATABASE

LANGUAGE

PHP DateTime

11 functions

datedate(string $format, ?int $timestamp): string

Formats a Unix timestamp as a date/time string.

timetime(): int

Returns the current Unix timestamp.

mktimemktime(int $hour, int $minute, int $second, int $month, int $day, int $year): int

Returns the Unix timestamp for the given date/time.

strtotimestrtotime(string $datetime): int|false

Parses any English textual datetime description into a Unix timestamp.

date_createdate_create(string $datetime): DateTime|false

Returns new DateTime object.

date_formatdate_format(DateTime $object, string $format): string

Returns date formatted according to given format.

date_modifydate_modify(DateTime $object, string $modifier): DateTime

Alters the timestamp of a DateTime object.

date_diffdate_diff(DateTime $baseObject, DateTime $targetObject): DateInterval

Returns the difference between two DateTime objects.

checkdatecheckdate(int $month, int $day, int $year): bool

Validates a Gregorian date.

microtimemicrotime(bool $as_float = false): string|float

Returns the current Unix timestamp with microseconds.

DateTime::createFromFormatDateTime::createFromFormat(string $format, string $datetime): DateTime|false

Parses a time string according to a specified format.

Terms of ServicePrivacy PolicyContactIcons by Flaticon