- 可删除
ID = account name + 注册时间
同一时刻,一个 account name 只属于一个人。
import java.text.SimpleDateFormat | |
def formatter = new SimpleDateFormat("yyyy-MM-dd", Locale.US) | |
def outputFormatter = new SimpleDateFormat("yyyy.MM.dd HH:mm:ss zzzz") | |
def date = formatter.parse("2016-07-1") | |
//println date.class | |
//println date | |
println date.time | |
println outputFormatter.format(date) |