Skip to content

cDateTime::FromSQL()

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

Method FromSQL( )

 public   mixed libdatephp\cDateTime::FromSQL(string $str)

FromSQL( ) sets the timestamp to the value represented by a string in SQL notation (year-month-day)

Example:

use libdatephp;

$dtm3 = new cDateTime( '2016-12-22 05:00:00' );

Arguments

  • $str string - <p>as a string representation of a timestamp</p>

Clone this wiki locally