ROUTMIO_DEV

TOOLS

DDL 생성기DDL → ERD 변환더미데이터 생성기정규식 테스터JSON 포매터Base64 변환기타임스탬프 변환기Cron 생성기회의 / 보고서 초안

DATABASE

LANGUAGE

PHP 날짜/시간

11개 함수

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

Unix 타임스탬프를 형식화된 날짜 문자열로 반환합니다.

timetime(): int

현재 Unix 타임스탬프를 반환합니다.

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

지정 날짜/시간의 Unix 타임스탬프를 반환합니다.

strtotimestrtotime(string $datetime): int|false

날짜/시간 문자열을 Unix 타임스탬프로 변환합니다.

date_createdate_create(string $datetime): DateTime|false

DateTime 객체를 생성합니다.

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

DateTime 객체를 형식화된 문자열로 반환합니다.

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

DateTime 객체를 수정합니다. (예: '+1 day')

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

두 DateTime의 차이를 DateInterval로 반환합니다.

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

날짜의 유효성을 확인합니다.

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

현재 시간을 마이크로초 단위로 반환합니다.

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

지정 형식으로 문자열을 파싱하여 DateTime을 생성합니다.

이용약관개인정보처리방침문의하기Icons by Flaticon