Lines Matching refs:timestamp
753 $timestamp = $date->format("Y-m-d\TH:i:s\Z");
754 return $timestamp;
805 * @param int|null $timestamp The unix timestamp we should apply the
813 public static function parseDuration($duration, $timestamp = null) argument
844 if ($timestamp === null) {
845 $timestamp = time();
856 $yearmonth = explode(':', gmdate('Y:n', $timestamp));
861 $timestamp -= gmmktime(0, 0, 0, $month, 1, $year);
876 $timestamp += gmmktime(0, 0, 0, $month, 1, $year);
880 $timestamp += $durWeeks * 7 * 24 * 60 * 60;
881 $timestamp += $durDays * 24 * 60 * 60;
882 $timestamp += $durHours * 60 * 60;
883 $timestamp += $durMinutes * 60;
884 $timestamp += $durSeconds;
886 return $timestamp;