Function getDateTimeByTimeZone

  • 按指定时区取得当前时间

    Parameters

    • timeZone: number = 0

      指定的时区,默认为 0(北京市+8,美国华盛顿 -5)

    • now: Date = ...

      指定的时间对象,默认为当前浏览器获取的时间 new Date()

    Returns Date