|
update : 2015.11.03
php.shukuma.com검색:
|
DateTime::setTimestampdate_timestamp_set(PHP 5 >= 5.3.0, PHP 7) DateTime::setTimestamp -- date_timestamp_set — Sets the date and time based on an Unix timestamp 설명객체 기반 형식 절차식 형식 Sets the date and time based on an Unix timestamp. 인수
반환값
메소드 체이닝을 위한 DateTime 객체를 반환합니다.실패 시 예제Example #1 DateTime::setTimestamp() example 객체 기반 형식
<?php절차식 형식
<?php위 예제들의 출력 예시: 1272508903 = 2010-04-28 22:41:43 1171502725 = 2007-02-14 20:25:25 주의Using the Unix timestamp format to construct a new DateTime object is an alternative when using PHP 5.2, as shown in the example below. Example #2 DateTime::setTimestamp() alternative in PHP 5.2
<?php위 예제의 출력 예시: 1171502725 = 2007-02-14 20:25:25 참고
|