Date/time conversion functionality.
category |
VuFind |
---|---|
package |
Date |
author |
Demian Katz demian.katz@villanova.edu |
author |
Luke O'Sullivan l.osullivan@swansea.ac.uk |
license |
http://opensource.org/licenses/gpl-2.0.php GNU General Public License |
link |
Wiki |
__construct(array $config = array())
array
Configuration to use (omit to use defaults)
convert(string $inputFormat, string $outputFormat, string $dateString) : string
Throws |
|
---|
string
The format of the time string to be changed
string
The desired output format
string
The date string
string
A re-formatted time string
convertFromDisplayDate(string $outputFormat, string $displayDate) : string
Throws |
|
---|
string
The format of the required date string
string
The display formatted date string
string
A re-formatted date string
convertToDisplayDate(string $createFormat, string $dateString) : string
Throws |
|
---|
string
The format of the date string to be changed
string
The date string
string
A re-formatted date string
convertToDisplayDateAndTime(string $createFormat, string $timeString, string $separator = ' ') : string
Throws |
|
---|
string
The format of the time string to be changed
string
The time string
string
String between time/date
string
A re-formatted time string
convertToDisplayTime(string $createFormat, string $timeString) : string
Throws |
|
---|
string
The format of the time string to be changed
string
The time string
string
A re-formatted time string
convertToDisplayTimeAndDate(string $createFormat, string $timeString, string $separator = ' ') : string
Throws |
|
---|
string
The format of the time string to be changed
string
The time string
string
String between time/date
string
A re-formatted time string
getDateExceptionMessage(array $details) : string
array
Error details
string
displayDateFormat : string
var |
---|
string
displayTimeFormat : string
var |
---|
string
timezone : \DateTimeZone
var |
---|
\DateTimeZone