[Go] time.Time 时间格式处理

golang中对时间和日期格式处理 date format in Go golang 时间格式化文档time constants 1 2 3 4 5 6 7 time.Now().UTC().Format("2006-01-02") time.Now().UTC().Format("02/01/2006") time.Now().UTC().Format("2006-01-02 15:04:05") time.Now().UTC().Format(time.RFC3339) Parse date with a timezone 1 2 3 4 s := "2022-07-30T19:12:00+01:00" loc, _ := time.LoadLocation("Europe/Berlin") t, _ := time.ParseInLocation(time.RFC3339, s, loc) fmt.Println(t) 计

[YCSB] 使用YCSB对数据库性能测试

Yahoo! Cloud Serving Benchmark (YCSB) 是一个Java语言实现的主要用于云端或者服务器端的数据库性能测试工具。 下载YCSB 下载最新版本的YCSB 1 2 3 curl -O --location https://github.com/brianfrankcooper/YCSB/releases/download/0.17.0/ycsb-0.17.0.tar.gz tar xfvz ycsb-0.17.0.tar.gz cd ycsb-0.17.0 查

[Linux] NTP时间服务器

NTP(Network Time Protocol) 网络时间协议,工作在UDP的123端口上 是用来使计算机时间同步化的一种协议,它可以使计算机对其服务器或时钟源(如石英钟,GPS等等)做