java regex
流程
| |
minio python api
错误
| |
Java Time and Date
老 API
Date 类
创建
- new Date()
Calendar 类
创建
- Calendar.getInstance()
方法
- get(Calendar.YEAR)
- get(…)
- set(Calendar.YEAR, 2000)
- …
TimeZone 类
创建
- TimeZone.getDefault()
SimpleDateFormat
创建
- new SimpleDateFormat("yyyy-MM-dd HH:mm:ss")
方法
- format(Date)
Org_babel
功能点
switches
方法:
-n: 显示行号- source block switches
- 详情:rich format
File class
路径分割符
- File.seperator : "/" or "\"
- File.pathSeperator: ":" or ";"
当前路径 pwd
参考
user.dir
1 2System.getProperty("user.dir") File(".").getCanonicalPath()- jvm 调用 application 位置
Paths
1Paths.get(".").toAbsolutePath().normalize().toString();