level 5
如图这种“时间戳”格式的时间怎么转换为年月日
IYU有对应的转换代码吗?是不是要用IJAVA的才行?
2022年11月29日 09点11分
1
level 5
找到转换代码了
s time = "
15798272190
00"
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)
syso(formattedTime)
【"
15798272190
00" 就是时间戳】
2022年11月29日 11点11分
3
只有java吗?
2024年08月14日 11点08分
@莎莎笨笨的六花 你要纯iyu的吗? 你去iapp的共享空间里搜“时间戳转时间大全” 里面有iyu,mjs,mjava,ijava,mlua五种方法
2024年11月20日 11点11分