PHP » GoLang |
login |
register |
about
|
GoLang DateTime::setTimezone
request it (375)
GoLang replacement for PHP's DateTime::setTimezone
[edit | history]
DateTime::setTimezonedate_timezone_set(PHP 5 >= 5.2.0, PHP 7) DateTime::setTimezone -- date_timezone_set — Sets the time zone for the DateTime object DescriptionObject oriented style Procedural style Parameters
Return Values
Returns the DateTime object for method chaining or Changelog
ExamplesExample #1 DateTime::setTimeZone() example Object oriented style
<?php Procedural style
<?php The above examples will output: 2000-01-01 00:00:00+12:00 2000-01-01 01:45:00+13:45 See Also
|
more
Recently updated
more
Most requested
more
Last requests
|