public class DateTimeZoneUtil extends Object implements Serializable
依赖 xk-time
Constructor and Description |
---|
DateTimeZoneUtil() |
Modifier and Type | Method and Description |
---|---|
static String |
dateToTimeZone(Date date)
时间转 TimeZone
|
static String |
dateToTimeZone(long time)
时间转 TimeZone
|
static void |
main(String[] args) |
static String |
timeZoneDateToStr(String str)
TimeZone 时间转标准时间
|
public static String dateToTimeZone(long time) throws Exception
2020-08-17T16:46:37+08:00
public static String dateToTimeZone(Date date) throws Exception
2020-08-17T16:46:37+08:00
public static String timeZoneDateToStr(String str) throws Exception
2020-08-17T16:46:37+08:00 to 2020-08-17 16:46:37
Copyright © 2022. All rights reserved.