The date in GMT and the time zone offset.
日期(格林尼治标准时间)与时区偏差。
An offset is simply the difference between UTC and local time, whereas the time zone is a named set of rules describing how the offset changes over time.
偏移量仅仅是UTC和本地时间之间的差值,而时区则是一个具名的规则集合,描述了偏移量该如何随着时间的变化而变化。
Even worse, many callers don't know their offset from GMT, so you're faced with supporting time zones, time zone abbreviations, daylight savings time... the list can get long and unwieldy.
甚至可能更糟的是,很多呼叫者并不知道自己所在地与GMT的时差,因此您要面临提供时区、时区缩写、夏令时……那将是一个冗长烦琐的列表。
Write code that asks for a time zone or the offset from GMT, and then develop greetings based on that information.
编写代码询问时区或与GMT的时差,然后根据这一信息提供问候语。
Therefore a time in time zone 0 (GMT at the time, as there was no UTC yet) would have an odd time offset when represented as local time for Yekaterinburg (Russia).
因此时间时区0(格林尼治时间,因为没有UTC)将有一个奇怪的时间抵消叶卡捷琳堡时表示为本地时间(俄罗斯)。
Calculates the offset or difference between the time in this time zone and Coordinated Universal time (UTC) for a particular date and time.
计算此时区中的时间与协调世界时(utc)之间针对特定日期和时间的偏移量或差值。
Creates a custom time zone with a specified identifier, an offset from Coordinated Universal time (UTC), a display name, and a standard time display name.
创建带指定标识符的自定义时区、与协调世界时(utc)的偏移量、显示名称以及标准时间显示名称。
Creates a custom time zone with a specified identifier, an offset from Coordinated Universal time (UTC), a display name, and a standard time display name.
创建带指定标识符的自定义时区、与协调世界时(utc)的偏移量、显示名称以及标准时间显示名称。
应用推荐