From what I remember, it was important to not only set the region, but also the
locale of the target location you wish to show the time in.
The switching of EST to EDT and GMT to BST are handled automatically as
mentioned below, but the real world implications are more important.
While my
Apple has a good Technical Q about this:
https://developer.apple.com/library/content/qa/qa1480/_index.html
Sal
> You might want to err on the side of caution and ensure that the Calendar
object is explicitly set > to Gregorian rather than using the current
system setting.
> Jonathan
> On 15
Got it - I understand now. And I kindly thank you for the clarification.
On Mon, May 15, 2017 at 9:31 AM Andrew Thompson wrote:
> BST is British Summer Time, but also Bering Standard Time (UTC-11). Do you
> want to risk getting the wrong one?
>
> The UK observes daylight
BST is British Summer Time, but also Bering Standard Time (UTC-11). Do you want
to risk getting the wrong one?
The UK observes daylight savings time, which being in Boston you no doubt
understand means half the year the name of the time zone changes. In Boston
Eastern time switches from EST to
Europe/London = BST though, correct?
On Mon, May 15, 2017 at 9:06 AM Andrew Thompson wrote:
>
>
> > On May 15, 2017, at 8:50 AM, Eric E. Dolecki wrote:
> >
> > Thanks for your reply. Does this look safe to use?
> >
> > // London
> > let locale =
> On May 15, 2017, at 8:50 AM, Eric E. Dolecki wrote:
>
> Thanks for your reply. Does this look safe to use?
>
> // London
> let locale = TimeZone.init(abbreviation: "BST")
>
Use "Europe/London":
1. BST has at least 3 different meanings
2. You'll automatically get
You might want to err on the side of caution and ensure that the Calendar
object is explicitly set to Gregorian rather than using the current system
setting.
Jonathan
> On 15 May 2017, at 13:50, Eric E. Dolecki wrote:
>
> Thanks for your reply. Does this look safe to use?
Thanks for your reply. Does this look safe to use?
// London
let locale = TimeZone.init(abbreviation: "BST")
let cal = Calendar.current
let date = Date()
let comp = cal.dateComponents(in:locale!, from: date)
// Local (right now for me it's Boston)
let hour = Calendar.current.component(.hour,
> On May 14, 2017, at 5:47 PM, Eric Dolecki wrote:
>
> I have a clock. If like to present the times in a few major cities. Say
> London, England. Based on the user's current time zone, present the correct
> hour, min, and second for London. If I can see how to do it for
I have a clock. If like to present the times in a few major cities. Say
London, England. Based on the user's current time zone, present the correct
hour, min, and second for London. If I can see how to do it for one city, I
should be good for others.
Actually the hour offset probably makes
10 matches
Mail list logo