@@ -36,45 +36,45 @@ private DateTimeHelper() {
3636 }
3737
3838 // ISO_8601
39- public static String toISOString (LocalDateTime dateTime ) {
39+ static String toISOString (LocalDateTime dateTime ) {
4040 Objects .requireNonNull (dateTime , "dateTime" );
4141
4242 return DateTimeFormatter .ISO_INSTANT .format (ZonedDateTime .of (dateTime , ZoneOffset .UTC ));
4343 }
4444
45- public static String toISOString (LocalTime time ) {
45+ static String toISOString (LocalTime time ) {
4646 Objects .requireNonNull (time , "time" );
4747
4848 return DateTimeFormatter .ISO_LOCAL_TIME .format (time );
4949 }
5050
51- public static String toISOString (Date date ) {
51+ static String toISOString (Date date ) {
5252 Objects .requireNonNull (date , "date" );
5353
5454 return toISOString (toLocalDateTime (date ));
5555 }
5656
57- public static LocalDateTime toLocalDateTime (Date date ) {
57+ static LocalDateTime toLocalDateTime (Date date ) {
5858 Objects .requireNonNull (date , "date" );
5959
6060 return date .toInstant ().atZone (ZoneOffset .UTC ).toLocalDateTime ();
6161 }
6262
63- public static Date toDate (LocalDateTime dateTime ) {
63+ static Date toDate (LocalDateTime dateTime ) {
6464 Objects .requireNonNull (dateTime , "dateTime" );
6565
6666 return Date .from (dateTime .atZone (ZoneOffset .UTC ).toInstant ());
6767 }
6868
69- public static Date createDate (int year , int month , int day ) {
69+ static Date createDate (int year , int month , int day ) {
7070 return createDate (year , month , day , 0 , 0 , 0 , 0 );
7171 }
7272
73- public static Date createDate (int year , int month , int day , int hours , int min , int sec ) {
73+ static Date createDate (int year , int month , int day , int hours , int min , int sec ) {
7474 return createDate (year , month , day , hours , min , sec , 0 );
7575 }
7676
77- public static Date createDate (int year , int month , int day , int hours , int min , int sec , int millis ) {
77+ static Date createDate (int year , int month , int day , int hours , int min , int sec , int millis ) {
7878 long nanos = TimeUnit .MILLISECONDS .toNanos (millis );
7979 LocalDateTime localDateTime = LocalDateTime .of (year , month , day , hours , min , sec , (int ) nanos );
8080 return DateTimeHelper .toDate (localDateTime );
0 commit comments