Timestamp __construct(
[
$timestamp = '']
)
|
|
Constructor
Parameters:
API Tags:
Information Tags:
Since: | 1.0 |
Throws: | IllegalArguementException |
Getter for the date part
API Tags:
Information Tags:
Getter for the day part
API Tags:
Information Tags:
Get the date value as a string in the format "DD/MM/YYYY"
API Tags:
Information Tags:
Getter for the hour part
API Tags:
Information Tags:
Getter for the minute part
API Tags:
Information Tags:
Getter for the month part
API Tags:
Information Tags:
Get the validation rule
API Tags:
Information Tags:
Getter for the second part
API Tags:
Information Tags:
Getter for the time part
API Tags:
Information Tags:
Return the value in UNIX timestamp format
API Tags:
Information Tags:
Get the textual weekday part, e.g. Monday
API Tags:
Information Tags:
Getter for the year part
API Tags:
Information Tags:
void populateFromString(
string
$dateTime
)
|
|
Accepts a full date/time string in YYYY-mm-dd hh:ii:ss format
Parameters:
API Tags:
Information Tags:
Since: | 1.0 |
Throws: | IllegalArguementException |
void setDate(
integer
$year, integer
$month, integer
$day
)
|
|
Setter for the date part
Parameters:
integer |
$year: |
|
integer |
$month: |
|
integer |
$day: |
|
API Tags:
Information Tags:
Since: | 1.0 |
Throws: | IllegalArguementException |
void setRule(
string
$rule
)
|
|
Set the validation rule
Parameters:
API Tags:
Information Tags:
void setTime(
integer
$hour, integer
$minute, integer
$second
)
|
|
Setter for the time part
Parameters:
integer |
$hour: |
|
integer |
$minute: |
|
integer |
$second: |
|
Information Tags:
Throws: | IllegalArguementException |
Since: | 1.0 |
void setTimestampValue(
integer
$year, integer
$month, integer
$day, integer
$hour, integer
$minute, integer
$second
)
|
|
Setter for the timestamp value
Parameters:
integer |
$year: |
|
integer |
$month: |
|
integer |
$day: |
|
integer |
$hour: |
|
integer |
$minute: |
|
integer |
$second: |
|
API Tags:
Information Tags:
Since: | 1.0 |
Throws: | IllegalArguementException |
void setValue(
string
$dateTime
)
|
|
Accepts a full date/time string in YYYY-mm-dd hh:ii:ss format
Parameters:
API Tags:
Information Tags:
Implementation of:
- AlphaTypeInterface::setValue()
- Set the value of the type