A
A
artem782017-10-17 21:12:45
WordPress
artem78, 2017-10-17 21:12:45

How to get DateTimeZone for arbitrary time zone?

How to create a DateTimeZone object for an arbitrary time zone given in +/-HH:MM format? For those that are multiples of 1 hour, you can use Etc/GMT+X. But what about, for example, with GMT+5:45?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Karpion, 2019-07-16
@Karpion

First you need to write what kind of server it is - Apache, Ngnix, IIS, or something more exotic.
Then you need to write the original URL and the desired one. There are options here.
Apache has a directive that specifies which file (located in a directory) should be taken if the URL points to a directory.

S
Stalker_RED, 2017-10-17
@Stalker_RED

php.net/manual/en/timezones.php

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question