|
MongoDB\BSON\UTCDateTime::toDateTimeReturns the DateTime representation of this UTCDateTime Beschreibung
final public DateTime MongoDB\BSON\UTCDateTime::toDateTime
( void
)
Parameter-ListeDiese Funktion hat keine Parameter. RückgabewerteReturns the DateTime representation of this UTCDateTime. The returned DateTime will use the UTC time zone. Fehler/Exceptions
BeispieleBeispiel #1 MongoDB\BSON\UTCDatetime::toDateTime example
<?phpDas oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie:
string(31) "Thu, 20 Nov 2014 01:03:31 +0000"
string(17) "1416445411.987000"
object(DateTimeZone)#3 (2) {
["timezone_type"]=>
int(1)
["timezone"]=>
string(6) "+00:00"
}
Siehe auch |