Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
WPDKDateTime
stripSecondsFromTime
WPDKDateTime::stripSecondsFromTime PHP Method
WPDKDateTime Class Documentation
Show file
Open project: wpxtreme/wpdk
stripSecondsFromTime()
public
static
method
Strip seconds from a date string (with time)
public
static
stripSecondsFromTime
(
string
$time
) :
string
$time
string
Time in hh:mm:ss
return
string
public static function stripSecondsFromTime($time) { return substr($time, 0, 5); // 00:00 }
WPDKDateTime
accuracy
beginningOfWeek
compareDate
compareDatetime
daysToDate
daysToWeekStart
elapsed
elapsedString
elapsed_string
expirationDate
format
human
isExpired
isInRangeDatetime
mySQLDate
mySQLDateTime
stripSecondsFromTime
timeInRange
timeNewLine