Angularjs 时区位置角

Angularjs 时区位置角,angularjs,timezone,Angularjs,Timezone,我怎样才能得到我所在时区的位置或地点?我使用的是angularjs,我使用的是“Z”格式,但只显示数值。我是否也可以得到每个时区的具体位置?非常感谢您可以尝试下面的解决方案:(link ref) 谢谢这里是我的代码设置选项卡。控制器('Ctrl2',['$scope',函数($scope){$scope.format1='M/d/yy';$scope.format='h';$scope.format3='mm';$scope.format4='ss';$scope.format5='a';$sc

我怎样才能得到我所在时区的位置或地点?我使用的是angularjs,我使用的是“Z”格式,但只显示数值。我是否也可以得到每个时区的具体位置?非常感谢

您可以尝试下面的解决方案:(link ref)


谢谢这里是我的代码设置选项卡。控制器('Ctrl2',['$scope',函数($scope){$scope.format1='M/d/yy';$scope.format='h';$scope.format3='mm';$scope.format4='ss';$scope.format5='a';$scope.format2='Z';我怎样才能添加该函数?整个页面都在这个链接中:谢谢谢谢你的帮助:)
(function (angular) {

  var application = angular.module('application', ['Timezones'])

  application.constant('$timezones.definitions.location', '/tz/data')

  application.controller('World', function ($scope) {
    var now = $scope.now = Date.now()

    $scope.examples = [
      { timezone : 'Pacific/Honolulu', reference : now },
      { timezone : 'America/Los_Angeles', reference : now },
      { timezone : 'America/Chicago', reference : now },
      { timezone : 'America/New_York', reference : now },
      { timezone : 'Europe/Berlin', reference : now },
      { timezone : 'Asia/Tokyo', reference : now },
      { timezone : 'Australia/Sydney', reference : now },
      { timezone : 'Etc/GMT+12', reference : now }
    ]
  })

})(angular)