Wesley13 Wesley13
3年前
java8 获取当前时间戳
1、使用LocalDateTime架包 LocalDatelocalDateLocalDate.now();TimestamptimestampTimestamp.valueOf(LocalDateTime.now());System.out.println(timestamp.getTime());
Stella981 Stella981
3年前
Linux服务器时间同步命令
时间同步1.首先需了解linux内一任务计划工具crontabcrontab可以定时去执行你要做的动作直接用crontab命令编辑crontabu//设定某个用户的cron服务,一般root用户在执行这个命令的时候需要此参数crontabl//列出某个用户cron服务的详细内容crontabr//删除某个用户的cron服务cr
Stella981 Stella981
3年前
Android Studio 3.0 下 Cordova 打包时 Gradle 兼容性问题解决
升级到AndroidStudio3.0,Gradle升级为4.3.1版本,使用cordovabuildandroid出错.解决方案:windows系统以下命令行在MINGW的bash窗口中执行1.下载文件https://downloads.gradle.org/distributions/gradle4.3.1
Stella981 Stella981
3年前
Kafka配置消息保存时间的方法
配置参考然后不废话,直接贴最终的关键配置:想实现消息队列中保存2小时的消息,那么配置应该像这样:log.roll.hours1log.retention.hours2log.segment.delete.delay.ms0Kafka日志存储机制分析
Wesley13 Wesley13
3年前
Java计算年月日时分秒时间差(两个时间相减)
//测试主方法 publicstaticvoidmain(Stringargs){     Date currentTime  df.parse("20040326 13:31:40");  //当前系统时间           Date firstTime  df.parse("200
Wesley13 Wesley13
3年前
ERC20 代币 API 调用
说在前面:请先阅读此文章:ERC20代币API调用前期准备(一)(https://my.oschina.net/u/3050295/blog/2050343)一、查看合约对象可调用的api接口在JS交互窗口中输入:cfcContract得到以下输出: 
Easter79 Easter79
3年前
TCP输出 之 tcp_write_xmit
概述tcp\_write\_xmit函数完成对待发送数据的分段发送,过程中会遍历发送队列,进行窗口检查,需要TSO分段则分段,然后调用tcp\_transmit\_skb发送数据段;源码分析1staticbooltcp_write_xmit(structsocksk,unsignedint
Stella981 Stella981
3年前
JavaScript实现显示在线时间的功能
<scripttype"text/javascript"functionshowTime(){vardivOnedocument.getElementById("one");vardnewDate();vartimStrd.getFullYe
Stella981 Stella981
3年前
HTTP中cache
网页的缓存是由http消息头中的“Cachecontrol”来控制的,常见的取值有private、nocache、maxage、mustrevalidate等,默认为private。其作用根据不同的重新浏览方式分为以下几种情况:(1)打开新窗口值为private、nocache、mustrevalidate,那么
Wesley13 Wesley13
3年前
Mysql获取系统时间,年,月,日
Mysql数据库中获取系统时间,年,月,日单个获取获取当前系统日期时间:selectSYSDATE()AS系统日期时间;获取当前系统年月日:selectcurrent\_dateAS年月日;获取当前系统年份:selectyear(CURRENT\_DATE)AS年;获取当