Java里得到00:00:00格式的时分秒的Timestamp
复制代码代码如下:import java.sql.Timestamp; import java.text.SimpleDateFormat; import java.util.TimeZone; public class Test { public static void main(String[] args) { SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); long t = System.currentTimeM
2024-11-17