File_Therion_DataTypes
[ class tree: File_Therion_DataTypes ] [ index: File_Therion_DataTypes ] [ all elements ]

Class: File_Therion_Date

Source Location: /File_Therion-0.4.1/File/Therion/DataTypes/Date.php

Class Overview

File_Therion_DataType
   |
   --File_Therion_Date

Class representing a therion date object.


Author(s):

Copyright:

  • 2016 Benedikt Hallinger

Variables

Methods


Inherited Variables

Inherited Methods

Class: File_Therion_DataType

File_Therion_DataType::parse()
Parse string content into this datatype
File_Therion_DataType::toString()
Get string representation
File_Therion_DataType::__toString()
Magic __toString() method calls toString().

Class Details

[line 25]
Class representing a therion date object.


[ Top ]


Class Variables

$date =  ""

[line 34]

Main date.
  • Var: string
  • Access: protected

Type:   array


[ Top ]



Method Detail

__construct (Constructor)   [line 44]

File_Therion_Date __construct( $dateString $dateString)

Create a new therion date object.

Basic format is: 'YYYY.MM.DD@HH:MM:SS.SS'

  • Access: public

Parameters:

$dateString   $dateString   — 

[ Top ]

parse   [line 72]

array|File_Therion_Date parse( $string $string)

Parse string content into this datatype.

When an interval was supplied, the parser returns an array containing two date objects; the first one is the near end and the second is the far point in time of the interval.

  • Return: crafted object or array with two objects.
  • Todo: check syntax when in date interval mode
  • Access: public

Overrides File_Therion_DataType::parse() (Parse string content into this datatype)

Parameters:

$string   $string   —  data to parse

[ Top ]

setDate   [line 98]

void setDate( string $date)

Set therion date.

Specification in a format:

  • 'YYYY[.MM[.DD[@HH[:MM[:SS[.SS]]]]'
  • or ‘-’ to leave a date unspecified.

  • Todo: check snytax
  • Access: public

Parameters:

string   $date   —  valid date string

[ Top ]

toString   [line 55]

Therion toString( )

Get string representation
  • Return: compliant String of this date
  • Access: public

Overrides File_Therion_DataType::toString() (Get string representation)
[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:09:45 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.