Skip to content

cDateISO::FromTimestamp()

Rainer Stötter edited this page May 9, 2017 · 1 revision

Method FromTimestamp( )

 public   mixed libdatephp\cDate::FromTimestamp($ts)

FromTimestamp() sets the internal day according to a timestamp

Example:

use libdatephp;

$dt = new cDate( 11, 23, 2016 );

$dt->FromDate( 20187 );

Arguments

  • $ts mixed - <p>int the timestamp to copy from</p>

See also

Clone this wiki locally