how to convert UTC to local time

To convert UTC to local time, follow these steps:
  1. Determine your local time offset from UTC time. To do this, follow these steps on a Microsoft Windows-based computer:
    1. Click Start, click Run, type timedate.cpl, and then click OK.
    2. Click the Time Zone tab, and then verify that your local time zone is selected. If your local time zone is not selected, click it in the list of available time zones.

      The local time offset is shown at the start of each local region list item. For example, -5:00 is the local time offset for Eastern Time (US & Canada):
      (GMT-5:00) Eastern Time (US & Canada)
  2. Add the local time offset to the UTC time.

    For example, if your local time offset is -5:00, and if the UTC time is shown as 11:00, add -5 to 11. The time setting when adjusted for offset is 06:00 (6:00 A.M.).

    Note The date also follows UTC format. For example, if your local time offset is -8:00, and if the file's UTC time is shown as 00:00 (12:00 midnight) on Monday, the adjusted time is 16:00 on Sunday (4:00 P.M., Sunday).
  3. Adjust for daylight saving time.

    UTC time is not adjusted to reflect daylight-saving time. If your time zone participates in daylight saving time, add the time difference to the file's offset-adjusted time when daylight saving time is in effect. For example, if daylight saving time in your time zone is one hour ahead of standard time, add one hour to the offset-adjusted time.
  4. Convert the 24-hour time format to 12-hour time format if your local time uses the 12-hour format. To make the conversion, follow these steps:
    • If the offset-adjusted time is between 12:01 and 23:59, inclusive, subtract 12 from the adjusted time, and then append P.M.
    • If the adjusted time is between 00:01 and 11:59, inclusive, leave the adjusted time as is, and then appendA.M.
    • If the adjusted time is 00:00, use 12:00 midnight.
    • If the adjusted time is 12:00, use 12:00 noon.
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值