05 2013 档案
Highcharts中时间有8小时时差的解决
摘要:Highcharts默认开启utc时间,中国在东八区所以传入javascript:date()的时间会被减掉8小时。可以用一下方法关闭: 47 Highcharts.setOptions({ 48 global: { 49 useUTC: false 50 } 51 });
阅读全文
javascript, 将系统时间转换为unix_timestamp
摘要:date.UTC的结果和其他可能存在时差,需要进行一些处理 14 //普通时间toUNIX时间 15 function get_unixtime(str) 16 { 17 str = str.replace(/-/g, "/"); 18 var date = new Date(str); 19 var unixtime = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate(), 20 date.getHours(), date.getMinutes(),...
阅读全文
一句话解题报告
摘要:POJ3067 Japan树状数组基础View Code //11584687 NKHelloWorld 3067 Accepted 2764K 485MS C++ 1186B 2013-05-11 14:37:10//这道题可能存在重边,K可能很大,需要longlong才能过#include <cstdio>#include <cstring>#include <algorithm>using namespace std;typedef long long ll;int n,m,k;ll tree[1100];struct NODE{ i...
阅读全文
live writer 测试
摘要:啊//11584687 NKHelloWorld 3067 Accepted 2764K 485MS C++ 1186B 2013-05-11 14:37:10//这道题可能存在重边,K可能很大,需要longlong才能过#include <cstdio>#include <cstring>#include <algorithm>using namespace std;typedef long l...
阅读全文
浙公网安备 33010602011771号