📜  新日期常规代码示例

📅  最后修改于: 2022-03-11 15:01:05.109000             🧑  作者: Mango

代码示例2
// takes the date encoded as milliseconds since midnight, January 1, 1970 UTC
def mydate = new Date(System.currentTimeMillis())

// create from an existing Calendar object
def mydate = new GregorianCalendar(2014, Calendar.APRIL, 3, 1, 23, 45).time