gmt

[转帖]有趣又让人迷惑的时区

百般思念 提交于 2020-02-16 08:43:58
https://www.worldtimezone.com/faq.html Interesting and confusing facts about time / time zones: Note: +11:00 or UTC+11:00/GMT+11:00 - mean that current place is 11 hours ahead of UTC (Universal Time Coordinated) or GMT (Greenwich Mean Time). For example, current Vladivostok standard time is UTC+11. -08:00 or UTC-08:00/GMT-08:00 - mean that current place is 8 hours behind of UTC (Universal Time Coordinated) or GMT (Greenwich Mean Time). For example, San Francisco standard time (PST) is UTC-08. Some places/countries use time offsets not an integral number of hours from UTC/GMT. Examples:

GMT5示例_在南极底图上画点

时光毁灭记忆、已成空白 提交于 2020-02-14 02:20:58
1.目标 在南极背景地图上绘制点。 注意:需要使用 lambertAzimuthal 投影。 2.代码 需要准备的数据文件: 文件名:data.txt(经度、纬度) 87.500 -76.200 114.500 -71.350 131.200 -76.570 123.140 -75.180 113.150 -71.260 151.120 -73.010 代码: # ubuntu R=0/360/-90/-60 # 经度从0-360,纬度从南极点到南纬60 J=A0/-90/5i # 投影方式,lambertAzimuthal,0表示经线起点(正上方是0),-90表示极点为南极,5i表示纸张大小? data=data.txt # 数据文件 ps=map.ps # 结果文件 # ps文件头 gmt psxy -J$J -R$R -T -K > $ps # 海岸线 -W绘制shoreline -G干区域 -S湿区域 gmt pscoast -R$R -J$J -Df -Baf -W1/0.25p,white -Gwhite -Sgrey -K -O >> $ps # 加点,使用了 -S 选项,则表示要绘制符号,-Sc :圆, -G 设置符号或多边形的填充色 gmt psxy $data -R$R -J$J -Sc0.08c -Gred -K -O >> $ps # ps文件尾 gmt

curl 命令详解

喜欢而已 提交于 2020-01-31 22:22:38
命令事例 发送POST请求: 如果传输文件:curl -F "blob=@tmp.txt;type=text/plain" localhost:8080/request_body 普通post请求:curl -d "method=searchone&module=seller&user_name=wb-liqiu&nickname=dd" -H"Host:fmp.view.lz.taobao.com" "10.235.160.141:8082/api.php" 模拟登录,传输cookie和参数: 下载cookie,命令:curl -c ./cookie.txt -d "language=zh&password=admin&username=admin" http://***.com:8080/saiku/rest/saiku/session 携带cookie以登录用户身份访问,命令如下:curl -b ./cookie.txt -L -d "name=/homes/test2&file=/homes/search.saiku" -H"Host:***.com" "192.0.0.134:8080/saiku/rest/saiku/api/repository/resource" 伪造来源地址,有的网站会判断,请求来源地址 curl -e http://localhost http:

恼人的时区问题

隐身守侯 提交于 2020-01-29 06:03:08
参考: http://www.99cankao.com/date/timezone.php 由于由于工作中经常要采集来自不同国家网站的数据,和来自不同时区的同事月会议,开发程序,所以经常在时区上转不过弯来,这里整理了一下,做个笔记,也希望对大家有所帮助。 时区的定义 1884年在华盛顿召开的国际经度会议(又称国际子午线会议)上,规定将全球划分为24个时区(东、西各12个时区)。 GMT 格林尼治平时(又称 格林尼治平均时间 或 格林尼治标准时间 ,旧译格林威治标准时间;英语:Greenwich Mean Time,GMT)是指位于英国伦敦郊区的皇家格林尼治天文台的标准时间,因为本初子午线被定义在通过那里的经线。 理论上来说,格林尼治标准时间的正午是指当太阳横穿格林尼治子午线时(也就是在格林尼治上空最高点时)的时间。由于地球在它的椭圆轨道里的运动速度不均匀, 这个时刻可能与实际的太阳时有误差,最大误差达16分钟 。 由于地球每天的自转是有些不规则的,而且正在缓慢减速,因此格林尼治时间已经不再被作为标准时间使用。现在的标准时间,是由原子钟报时的协调世界时(UTC)。 UTC 协调世界时,又称世界标准时间或世界协调时间,简称 UTC (从英文“Coordinated Universal Time”/法文“Temps Universel Coordonné”而来),是最主要的世界时间标准

python convert 10 digits datetimestamp to 13 digit GMT timestamp [duplicate]

為{幸葍}努か 提交于 2020-01-24 17:52:44
问题 This question already has answers here : Get current time in milliseconds in Python? (11 answers) Closed 7 days ago . I receive a timestamp from a server like this 1512543958 & when i send back requests in headers i see a 13 digit GMT time stamp like this 1512544485819 By changing the time to local using the code below i get 2017-12-06 12:35:58 print(datetime.datetime.fromtimestamp(int("1512544474")).strftime('%Y-%m-%d %H:%M:%S') & when i apply the code below i get 'Wed 06 Dec 2017 07:14:45

C#时间格式之GMT时间的格式

丶灬走出姿态 提交于 2020-01-23 13:20:10
GMT:格林尼标准时间 北京时间=GMT时间+8小时 DataTime nowDate = DataTime.Now; nowDate.toString("r"); 效果为: Wed, 22 Jul 2009 16:24:33 GMT 參数解释: d ShortDatePattern D LongDatePattern f 完整日期和时间(长日期和短时间) F FullDateTimePattern(长日期和长时间) g 常规(短日期和短时间) G 常规(短日期和长时间) m、M MonthDayPattern r、R RFC1123Pattern s 使用当地时间的 SortableDateTimePattern(基于 ISO 8601) t ShortTimePattern T LongTimePattern u UniversalSortableDateTimePattern 用于显示通用时间的格式 U 使用通用时间的完整日期和时间(长日期和长时间) y、Y YearMonthPattern 下表列出了可被合并以构造自己定义模式的模式 ======================================== 这些模式是区分大写和小写的。比如,识别“MM”,但不识别“mm”。假设自己定义模式包括空白字符或用单引號括起来的字符。则输出字符串页也将包括这些字符

解决java.sql.SQLException: The server time zone value '乱码'

两盒软妹~` 提交于 2020-01-17 23:26:56
解决ava.sql.SQLException: The server time zone value '乱码' 原因 1.mysql数据库与驱动的版本不匹配 我的mysql是8.0.16版本的 所以导入的驱动包版本要正确 <!-- mysql--> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>8.0.16</version> </dependency> 2.时区的问题 加上&&serverTimezone=GMT spring.datasource.url=jdbc:mysql://127.0.0.1:3306/springboot?characterEncoding=UTF-8&&serverTimezone=GMT spring.datasource.username=root spring.datasource.password=***** 来源: https://www.cnblogs.com/mengxiaoleng/p/12207826.html

ios-ntp framework sync issue

僤鯓⒐⒋嵵緔 提交于 2020-01-15 08:42:52
问题 I am using ntp-ios framework downloaded from github in my ipad application to get the GTM time , by using the following code [NetworkClock sharedNetworkClock]; // // gather up the ntp servers ... [NSDate networkDate]; // This will give the network date and time regardless of device date if the device time is wrong , then also i am getting the correct gmt time . but my problem is , when application goes to background and i changed the device time in settings . then after that if i again make

mysql 时间比较

痴心易碎 提交于 2020-01-14 20:01:18
1.两个时间差: 函数 TIMESTAMPDIFF ( type , gmt_start , gmt_end ) 其中type是比较的时间类型,可以是FRAC_SECOND、 SECOND、 MINUTE、 HOUR、 DAY、 WEEK、 MONTH、 QUARTER或 YEAR 其中gmt_start为开始时间,gmt_end是结束时间 比较的时间差为 结束时间-开始时间 来源: https://www.cnblogs.com/babylove/p/12193567.html

Displaying local time to a user when all you have is an offset (from GMT)

巧了我就是萌 提交于 2020-01-13 19:46:07
问题 I understand that it's pretty easy to display local time to a user given an offset from GMT for the timezone (e.g. -7 hours for Pacific Daylight Time). But, what if I want to continue to display the correct local time for a long period of time (say 1 year). Given just an offset from GMT, you do not know what timezone the user is in. E.g. given -7, the user may live in the US or in Canada (or in some other country). These countries my have different local times at different points of the year