Skip to content

cDateTime::SkipSeconds()

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

Method SkipSeconds( )

 public   mixed libdatephp\cDateTime::SkipSeconds(integer $secs)

SkipSeconds( ) adds $secs seconds to the timestamp

Example:

use libdatephp;

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

$dtm->SkipSeconds( 11 * 60 * 60 );

Arguments

  • $secs integer - <p>the number of seconds to add / subtract from the timestamp</p>

Clone this wiki locally