将时间戳转为时间
time(4,time)
javanew(date,"java.util.Date")
javanew(format,"java.text.SimpleDateFormat","String","yyyy-MM-dd HH:mm:ss")
java(null,date,"java.util.Date.setTime","long",time)
java(formattedTime,format,"java.text.DateFormat.format","java.util.Date",date)
tw(formattedTime)
//将时间戳转为时间
将时间转为时间戳
time(0,time)
javanew(sdf, "java.text.SimpleDateFormat", "String", "yyyy-MM-dd HH:mm:ss")
java(date,sdf,"java.text.DateFormat.parse","String",time)
java(stamp,date,"java.util.Date.getTime")
tw(stamp)
//将时间戳转为时间