在C#服务器中,使用Date.Now.ToString()生成的字符串时间,如果不指定字符串格式,C#会按照系统语言输出不同的字符串格式,如: a. 美国: 06/01/2019 01:59:00 PM b.中国: 2019/06/01 13:59:00 解决方案 使用全局配置模式:globaliz ...
分类:
数据库 时间:
2020-01-17 18:50:51
阅读次数:
136
The only difference between easy and hard versions is constraints. Now elections are held in Berland and you want to win them. More precisely, you wan ...
分类:
其他好文 时间:
2020-01-17 10:20:05
阅读次数:
118
1.日期输出格式化所有日期、时间的api都在datetime模块内。1.datetime=>stringnow=datetime.datetime.now()now.strftime(‘%Y-%m-%d%H:%M:%S‘)#输出2012-03-0516:26:23.870105strftime是datetime类的实例方法。2.string=>datetimet_str=‘2012-0
分类:
编程语言 时间:
2020-01-16 21:59:10
阅读次数:
79
连接数出现瓶颈,总是在4k左右。 1.查看系统最大进程数ulimit -a。查看相关进程的limits /proc/xxxxid/limits 2.nginx worker_connections 默认是1024.每个worker最大1024个连接。调整足够大。我设置为15000,4个worker, ...
分类:
其他好文 时间:
2020-01-16 10:36:50
阅读次数:
95
There are n computers numbered from 0 to n-1 connected by ethernet cables connections forming a network where connections[i] = [a, b] represents a con ...
分类:
Web程序 时间:
2020-01-15 14:20:49
阅读次数:
105
centos安装与网络配置 关机:shutdown -h now 重启:shutdown -r now 或 reboot linux目录结构与操作命令 使用ls命令查看目录结构 目录查看: ls [-al] [ 文件或目录名称] 目录切换: cd [ 目录名称] 显示当前目录: pwd 绝对路径 : ...
分类:
系统相关 时间:
2020-01-15 14:16:45
阅读次数:
143
1. 日期输出格式化 所有日期、时间的api都在datetime模块内。 1. datetime => string now = datetime.datetime.now() now.strftime('%Y-%m-%d %H:%M:%S') #输出2012-03-05 16:26:23.8701 ...
分类:
编程语言 时间:
2020-01-15 14:11:29
阅读次数:
85
1.iview设置日期不可用,设置开始开始时间早于结束时间 官网示例,设置今天之前不可选,但是不能识别thisdisabledDate (date) { return date && date.valueOf() < Date.now() - 86400000; }绑定this,可设置定义好的变量 ...
分类:
其他好文 时间:
2020-01-14 14:53:02
阅读次数:
151
节点资源耗尽状态 1、查看节点组件的状态 2、查看节点上pod的状态 查看日志内容发现如下内容: 1、Node emay CMPP01 status is now: NodeHasDiskPressure 2、Warning: “EvictionThresholdMet Attempting to ...
分类:
其他好文 时间:
2020-01-14 14:46:21
阅读次数:
389
fiddler的使用 在使用火狐浏览器进行抓包,需要手动代理配置HTTP代理:172.0.0.1,端口号为8888 fiddler远程操作手机,手机需要更改WLAN→代理→手动→主机名(ip地址)→端口(8888),电脑需要修改tools→connections→选中allow remote com ...
分类:
其他好文 时间:
2020-01-14 12:53:41
阅读次数:
72