zoukankan      html  css  js  c++  java
  • 代码片段:默认时区下拉菜单以国家名输出

    system.module :

    function _system_zonelist() {
    $timezoneArr = array();
    $timezoneArr []= array('(GMT -12:00) Eniwetok, Kwajalein', -12);
    $timezoneArr []= array('(GMT -11:00) Midway Island, Samoa', -11);
    $timezoneArr []= array('(GMT -10:00) Hawaii', -10);
    $timezoneArr []= array('(GMT -9:00) Alaska', -9);
    $timezoneArr []= array('(GMT -8:00) Pacific Time (US + Canada)', -8);
    $timezoneArr []= array('(GMT -7:00) Mountain Time (US + Canada)', -7);
    $timezoneArr []= array('(GMT -6:00) Central Time (US + Canada), Mexico City', -6);
    $timezoneArr []= array('(GMT -5:00) Eastern Time (US + Canada), Bogota, Lima', -5);
    $timezoneArr []= array('(GMT -4:00) Atlantic Time (Canada), Caracas, La Paz', -4);
    $timezoneArr []= array('(GMT -3:30) Newfoundland', -3.5);
    $timezoneArr []= array('(GMT -3:00) Brazil, Buenos Aires, Georgetown', -3);
    $timezoneArr []= array('(GMT -2:00) Mid-Atlantic', -2);
    $timezoneArr []= array('(GMT -1:00) Azores, Cape Verde Islands', -1);
    $timezoneArr []= array('(GMT -0:00) London, Western Europe, Lisbon, Casablanca', 0);
    $timezoneArr []= array('(GMT +1:00) Brussels, Copenhagen, Madrid, Paris', 1);
    $timezoneArr []= array('(GMT +2:00) Kaliningrad, South Africa', 2);
    $timezoneArr []= array('(GMT +3:00) Baghdad, Riyadh, Moscow, St. Petersburg', 3);
    $timezoneArr []= array('(GMT +3:30) Tehran', 3.5);
    $timezoneArr []= array('(GMT +4:00) Abu Dhabi, Muscat, Baku, Tbilisi', 4);
    $timezoneArr []= array('(GMT +4:30) Kabul', 4.5);
    $timezoneArr []= array('(GMT +5:00) Ekaterinburg, Islamabad, Karachi, Tashkent', 5);
    $timezoneArr []= array('(GMT +5:30) Bombay, Calcutta, Madras, New Delhi', 5.5);
    $timezoneArr []= array('(GMT +5:45) Kathmandu', 5.75);
    $timezoneArr []= array('(GMT +6:00) Almaty, Dhaka, Colombo', 6);
    $timezoneArr []= array('(GMT +7:00) Bangkok, Hanoi, Jakarta', 7);
    $timezoneArr []= array('(GMT +8:00) Beijing, Perth, Singapore, Hong Kong', 8);
    $timezoneArr []= array('(GMT +9:00) Tokyo, Seoul, Osaka, Sapporo, Yakutsk', 9);
    $timezoneArr []= array('(GMT +9:30) Adelaide, Darwin', 9.5);
    $timezoneArr []= array('(GMT +10:00) Eastern Australia, Guam, Vladivostok', 10);
    $timezoneArr []= array('(GMT +11:00) Magadan, Solomon Islands, New Caledonia', 11);
    $timezoneArr []= array('(GMT +12:00) Auckland, Wellington, Fiji, Kamchatka', 12);
    $zones = array();
    foreach($timezoneArr as $tz) {
    $zones [$tz[1] * 3600]= $tz[0];
    }
    return $zones;
    }
  • 相关阅读:
    不同指针类型的转换
    dt7.0百度熊掌当天主动推送方法
    腾讯视频信息数据爬虫开发【核心爬虫代码】
    seo与python大数据结合给文本分词并提取高频词
    Python经典算法-猴子吃桃-思路分析
    猜数游戏-人机对战-经典的randint使用
    python模拟双色球大乐透生成算法
    python打造批量关键词排名查询工具
    python开发全自动网站链接主动提交百度工具
    centos下shell脚本kill掉mysql锁表进程【笔记】
  • 原文地址:https://www.cnblogs.com/catcat811/p/2059674.html
Copyright © 2011-2022 走看看