WonderPush PHP library
  • Namespace
  • Class
Navigation
  • Namespace
  • Class
Namespaces
  • WonderPush
    • Api
    • Errors
    • Net
    • Obj
    • Params
    • Util
Classes
  • ArrayUtil
  • DefaultLogger
  • JsonSerializable
  • StringUtil
  • TimeUnit
  • TimeUtil
  • TimeValue
  • UrlUtil
Interfaces
  • Logger

Class TimeUtil

Utility class for time manipulation.

Namespace: WonderPush\Util
Located at Util/TimeUtil.php

Methods summary

public static parseISO8601DateOptionalTime( string $str ) : DateTime|null

Parse an ISO 8601 date with optional time into a \DateTime.

Parse an ISO 8601 date with optional time into a \DateTime.

Parameters

$str

Returns

DateTime|null
public static getMillisecondTimestampFromDateTime( DateTime $dt ) : integer|null

Converts a \DateTime into a unix timestamp in milliseconds.

Converts a \DateTime into a unix timestamp in milliseconds.

Parameters

$dt

Returns

integer|null
WonderPush PHP library API documentation generated by ApiGen