<?php $cfg_NotPrintHead = false; header("Content-Type: text/html; charset=utf-8"); include_once (dirname(__FILE__)."/../include/common.inc.php"); erro ...
处理时间的场景在软件开发中很常见,JDK提供了Date和Calendar,然而这套API并不是很好用。这里推荐使用JodaTime来进行时间的处理。这里放上JodaTime的官网地址:https://www.joda.org/joda-time/ Maven中央库中的依赖: <!-- https:/ ...
分类:
其他好文 时间:
2021-06-28 17:58:55
阅读次数:
0
LocalDate 年月日 LocalTime 时分秒 LocalDateTime 年月日时分秒 以 LocalDate 为例 package com.lch.time; import java.time.*; import java.time.format.DateTimeFormatter; i ...
分类:
其他好文 时间:
2021-06-28 17:53:00
阅读次数:
0
import java.util.ArrayList; import java.util.Arrays; import java.util.List; /** * @author: small-sunshine * @Description:考拉兹猜想,100万以内的数 * @date: 2021/ ...
分类:
其他好文 时间:
2021-06-25 17:25:25
阅读次数:
0
package main import ( "fmt" "time" ) var jobs chan int var results chan int func work(id int, jobs <-chan int, results chan<- int) { for i := range jo ...
分类:
其他好文 时间:
2021-06-25 17:24:48
阅读次数:
0
1、查询数据库版本 select version(); 2、查询数据库的运行时间 select current_timestamp-pg_postmaster_start_time() as uptime; 3、查询数据库的数据量SELECTdatname , a.rolname , pg_enco ...
分类:
数据库 时间:
2021-06-25 17:12:51
阅读次数:
0
引入依赖 <dependency> <groupId>com.alibaba</groupId> <artifactId>fastjson</artifactId> <version>1.2.33</version> </dependency> val env = StreamExecutionEn ...
分类:
Web程序 时间:
2021-06-25 16:38:01
阅读次数:
0
Tomcat与spring的类加载器案例接下来将介绍《深入理解java虚拟机》一书中的案例,并解答它所提出的问题。(部分类容来自于书中原文) Tomcat中的类加载器在Tomcat目录结构中,有三组目录(“/common/*”,“/server/*”和“shared/*”)可以存放公用Java类库, ...
分类:
编程语言 时间:
2021-06-24 18:27:36
阅读次数:
0
[root@es02-010007081131 dumpbackup]# more /home/script/backup/mysql_dumpbackup.sh #!/bin/bash . /etc/profile . ~/.bash_profile backup_date=`date "+%Y% ...
分类:
数据库 时间:
2021-06-24 18:11:54
阅读次数:
0
import timeimport unittestdef my_sum(a, b): a += 1 b += 2 return a + b# 生成测试用例class TestSum(unittest.TestCase): def test_001(self): print(my_sum(1,2)) ...
分类:
其他好文 时间:
2021-06-24 17:47:34
阅读次数:
0