Skip to content

cDateTime::FromDateTime()

Rainer Stötter edited this page Apr 28, 2017 · 15 revisions

Method FromDateTime( )

 public   mixed libdatephp\cDateTime::FromDateTime(\libdatephp\cDateTime $dt)

FromDateTime() sets the timestamp to the value represented by the datetime value

Example:

use libdatephp;

$dtm1 = new cDateTime( );

$dtm2 = new cDateTime( $dtm1 );

Arguments

Clone this wiki locally