Overview

Namespaces

  • Apptus
    • ESales
      • Connector
        • Report
        • Time
    • Util
      • Cache
  • PHP

Classes

  • CalendarDate
  • Duration
  • IsoDate
  • IsoDateTime
  • Month
  • OrdinalDate
  • Time
  • TimeInterval
  • TimePoint
  • Unit
  • WeekDate
  • Weekday
  • Overview
  • Namespace
  • Class
  • Tree

Class IsoDate

A date on any valid ISO 8601 format.

Direct known subclasses

Apptus\ESales\Connector\Time\CalendarDate, Apptus\ESales\Connector\Time\OrdinalDate, Apptus\ESales\Connector\Time\WeekDate
Abstract
Namespace: Apptus\ESales\Connector\Time
Located at Connector/Time/IsoDate.php
Methods summary
public static Apptus\ESales\Connector\Time\IsoDate
# parse( string $input )

Parses a date on ISO 8601 format and return it.

Parses a date on ISO 8601 format and return it.

If the date cannot be parsed, throws an exception.

Parameters

$input
input string. May not be null.

Returns

Apptus\ESales\Connector\Time\IsoDate
A date.

Throws

InvalidArgumentException
if the input cannot be parsed.
public static Apptus\ESales\Connector\Time\IsoDate
# parseInContext( string $input, Apptus\ESales\Connector\Time\IsoDate $start )

Parses a date on ISO 8601 format and return it.

Parses a date on ISO 8601 format and return it.

If the date cannot be parsed, throws an exception.

The date may omit the larger units, which in such case will be inherited from the start date supplied. Note that the start date then must be defined in the same date format as the input string.

Parameters

$input
input string. May not be null.
$start
date to inherit values from if omitted in input.

Returns

Apptus\ESales\Connector\Time\IsoDate
A date.

Throws

InvalidArgumentException
if the input cannot be parsed.
abstract public Apptus\ESales\Connector\Time\TimePoint
# toTimePoint( Apptus\ESales\Connector\Time\Time $t, DateTimeZone $tz )

Returns a point in time represented by this date and a supplied time of day.

Returns a point in time represented by this date and a supplied time of day.

If the date or time lacks precision, or if the time is omitted, then the smallest valid point in time for this specification is used.

Parameters

$t
time of day. May be null.
$tz
timezone.

Returns

Apptus\ESales\Connector\Time\TimePoint
A point in time.
abstract public string
# __toString( )

Returns a string with an ISO 8601 representation of this date.

Returns a string with an ISO 8601 representation of this date.

Returns

string
An ISO 8601 representation of this date.
Apptus ESales Connector PHP API documentation generated by ApiGen