위키
포럼
도구
  • 특수문서 목록
  • 토론
  • 기여
  • 로그인
바뀐글
랜덤

PHP strtotime()

2020-04-19 J
편집
역링크
토론
역사 역링크 최근바뀜 인쇄용 판 고유 링크 문서 정보 이 문서 인용하기
분류:
  • PHP 날짜/시간 함수
도움말편집 알림
문서 옵션
편집기 전환
변경사항 저장...Alt+S
도움말닫기
편집할 때 기술적인 문제가 발생했다면 보고해 주세요.
사용자 가이드 읽기키보드 단축이 소프트웨어에 대한 피드백 남기기
편집 알림닫기
옵션분류문서 설정고급 설정언어사용된 틀⧼visualeditor-changedir-rtl⧽Ctrl+Shift+X찾아 바꾸기Ctrl+F더 보기
시각 편집원본 편집더 보기
실행 취소Ctrl+Z다시 실행Ctrl+Shift+Z, Ctrl+Y
텍스트 스타일
링크Ctrl+K

링크

중요한 단어에 다른 위키의 문서나 웹사이트로 링크를 거세요. 이는 독자들이 문맥을 이해하기 쉽도록 도와줍니다.

알겠습니다
인용
구조
넣기
특수 문자
문단Ctrl+0문단 제목Ctrl+21단계 하위 문단 제목Ctrl+32단계 하위 문단 제목Ctrl+43단계 하위 문단 제목Ctrl+54단계 하위 문단 제목Ctrl+6머리글 칸내용 칸미리 지정된 서식Ctrl+7상자 인용Ctrl+8문서 제목Ctrl+1
굵게Ctrl+B기울임꼴Ctrl+I위 첨자Ctrl+.아래 첨자Ctrl+,취소선Ctrl+Shift+5컴퓨터 코드Ctrl+Shift+6밑줄Ctrl+U언어크게작게제거Ctrl+\, Ctrl+M더 보기
기본Ctrl+Shift+K재사용더 보기
점 목록숫자 목록들여쓰기 낮추기Shift+탭, Ctrl+[들여쓰기 높이기탭, Ctrl+]더 보기
이미지 및 미디어틀표주석코드 상자갤러리기보당신의 서명각주 목록더 보기

목차

  • 1 개요
  • 2 같이 보기
  • 3 참고

1 개요[ | ]

PHP strtotime()
PHP
CPU
0.0s
MEM
21M
0.1s
Copy
<?php
echo strtotime("now"), "\n";
echo strtotime("10 September 2000"), "\n";
echo strtotime("+1 day"), "\n";
echo strtotime("+1 week"), "\n";
echo strtotime("+1 week 2 days 4 hours 2 seconds"), "\n";
echo strtotime("next Thursday"), "\n";
echo strtotime("last Monday"), "\n";
1633814161
968544000
1633900561
1634418961
1634606163
1634169600
1633305600
PHP
CPU
0.0s
MEM
21M
0.0s
Copy
<?php
echo date('Y-m-d H:i:s', strtotime("now")), "\n";
echo date('Y-m-d H:i:s', strtotime("10 September 2000")), "\n";
echo date('Y-m-d H:i:s', strtotime("+1 day")), "\n";
echo date('Y-m-d H:i:s', strtotime("+1 week")), "\n";
echo date('Y-m-d H:i:s', strtotime("+1 week 2 days 4 hours 2 seconds")), "\n";
echo date('Y-m-d H:i:s', strtotime("next Thursday")), "\n";
echo date('Y-m-d H:i:s', strtotime("last Monday")), "\n";
2021-10-09 21:16:01
2000-09-10 00:00:00
2021-10-10 21:16:01
2021-10-16 21:16:01
2021-10-19 01:16:03
2021-10-14 00:00:00
2021-10-04 00:00:00

2 같이 보기[ | ]

  • PHP date()
  • PHP strptime()
  • PHP checkdate()
  • PHP DateTime::createFromFormat()
  • 함수 strtotime()

3 참고[ | ]

  • https://www.php.net/manual/en/function.strtotime.php
  • https://www.geeksforgeeks.org/php-strtotime-function/
  • https://www.w3schools.com/php/func_date_strtotime.asp

원본 주소 "https://zetawiki.com/w/index.php?title=PHP_strtotime()&oldid=608172"
분류:
  • PHP 날짜/시간 함수
생성 2020-04-19
편집자 J Jmnote Jmnote bot
문서 댓글 (0)
로그인하시면 댓글을 쓸 수 있습니다.

CC-BY-SA 3.0 · Powered by MediaWiki

개인정보처리방침 · ABOUT

다음 문자열 포함...
취소다시 시도하세요