@@ -33,8 +33,8 @@ public final class DateUtils {
3333 /**
3434 * Formats a {@link LocalDate} using the default pattern ({@value #DEFAULT_DATE_PATTERN}).
3535 *
36- * @param date the date to format
37- * @return the formatted date, or {@code null} if date is null
36+ * @param date the date to format.
37+ * @return the formatted date, or {@code null} if date is null.
3838 */
3939 public static String format (LocalDate date ) {
4040 return format (date , DEFAULT_DATE_PATTERN );
@@ -43,9 +43,9 @@ public static String format(LocalDate date) {
4343 /**
4444 * Formats a {@link LocalDate} using a custom pattern.
4545 *
46- * @param date the date to format
47- * @param pattern the formatting pattern
48- * @return the formatted date, or {@code null} if date is null
46+ * @param date the date to format.
47+ * @param pattern the formatting pattern.
48+ * @return the formatted date, or {@code null} if date is null.
4949 */
5050 public static String format (LocalDate date , String pattern ) {
5151 if (date == null ) {
@@ -57,8 +57,8 @@ public static String format(LocalDate date, String pattern) {
5757 /**
5858 * Formats a {@link LocalDateTime} using the default pattern ({@value #DEFAULT_DATE_TIME_PATTERN}).
5959 *
60- * @param dateTime the date-time to format
61- * @return the formatted date-time, or {@code null} if dateTime is null
60+ * @param dateTime the date-time to format.
61+ * @return the formatted date-time, or {@code null} if dateTime is null.
6262 */
6363 public static String format (LocalDateTime dateTime ) {
6464 return format (dateTime , DEFAULT_DATE_TIME_PATTERN );
@@ -67,9 +67,9 @@ public static String format(LocalDateTime dateTime) {
6767 /**
6868 * Formats a {@link LocalDateTime} using a custom pattern.
6969 *
70- * @param dateTime the date-time to format
71- * @param pattern the formatting pattern
72- * @return the formatted date-time, or {@code null} if dateTime is null
70+ * @param dateTime the date-time to format.
71+ * @param pattern the formatting pattern.
72+ * @return the formatted date-time, or {@code null} if dateTime is null.
7373 */
7474 public static String format (LocalDateTime dateTime , String pattern ) {
7575 if (dateTime == null ) {
@@ -81,9 +81,9 @@ public static String format(LocalDateTime dateTime, String pattern) {
8181 /**
8282 * Parses a date string into a {@link LocalDate}.
8383 *
84- * @param date the date string
85- * @param pattern the date pattern
86- * @return the parsed {@link LocalDate}, or {@code null} if input is null
84+ * @param date the date string.
85+ * @param pattern the date pattern.
86+ * @return the parsed {@link LocalDate}, or {@code null} if input is null.
8787 */
8888 public static LocalDate parseDate (String date , String pattern ) {
8989 if (date == null ) {
@@ -95,9 +95,9 @@ public static LocalDate parseDate(String date, String pattern) {
9595 /**
9696 * Parses a date-time string into a {@link LocalDateTime}.
9797 *
98- * @param dateTime the date-time string
99- * @param pattern the date-time pattern
100- * @return the parsed {@link LocalDateTime}, or {@code null} if input is null
98+ * @param dateTime the date-time string.
99+ * @param pattern the date-time pattern.
100+ * @return the parsed {@link LocalDateTime}, or {@code null} if input is null.
101101 */
102102 public static LocalDateTime parseDateTime (String dateTime , String pattern ) {
103103 if (dateTime == null ) {
@@ -109,8 +109,8 @@ public static LocalDateTime parseDateTime(String dateTime, String pattern) {
109109 /**
110110 * Converts a Unix timestamp (seconds) to a {@link LocalDateTime}.
111111 *
112- * @param timestampSeconds the Unix timestamp in seconds
113- * @return the corresponding {@link LocalDateTime}
112+ * @param timestampSeconds the Unix timestamp in seconds.
113+ * @return the corresponding {@link LocalDateTime}.
114114 */
115115 public static LocalDateTime fromTimestamp (long timestampSeconds ) {
116116 return LocalDateTime .ofInstant (
@@ -122,8 +122,8 @@ public static LocalDateTime fromTimestamp(long timestampSeconds) {
122122 /**
123123 * Converts a {@link LocalDateTime} to a Unix timestamp (seconds).
124124 *
125- * @param dateTime the date-time to convert
126- * @return the Unix timestamp in seconds, or {@code null} if dateTime is null
125+ * @param dateTime the date-time to convert.
126+ * @return the Unix timestamp in seconds, or {@code null} if dateTime is null.
127127 */
128128 public static Long toTimestamp (LocalDateTime dateTime ) {
129129 if (dateTime == null ) {
@@ -135,8 +135,8 @@ public static Long toTimestamp(LocalDateTime dateTime) {
135135 /**
136136 * Converts a legacy {@link Date} to {@link LocalDateTime}.
137137 *
138- * @param date the {@link Date} to convert
139- * @return the corresponding {@link LocalDateTime}, or {@code null} if date is null
138+ * @param date the {@link Date} to convert.
139+ * @return the corresponding {@link LocalDateTime}, or {@code null} if date is null.
140140 */
141141 public static LocalDateTime toLocalDateTime (Date date ) {
142142 if (date == null ) {
@@ -148,8 +148,8 @@ public static LocalDateTime toLocalDateTime(Date date) {
148148 /**
149149 * Converts a {@link LocalDateTime} to legacy {@link Date}.
150150 *
151- * @param dateTime the date-time to convert
152- * @return the corresponding {@link Date}, or {@code null} if dateTime is null
151+ * @param dateTime the date-time to convert.
152+ * @return the corresponding {@link Date}, or {@code null} if dateTime is null.
153153 */
154154 public static Date toDate (LocalDateTime dateTime ) {
155155 if (dateTime == null ) {
@@ -161,7 +161,7 @@ public static Date toDate(LocalDateTime dateTime) {
161161 /**
162162 * Returns the current date-time.
163163 *
164- * @return the current {@link LocalDateTime}
164+ * @return the current {@link LocalDateTime}.
165165 */
166166 public static LocalDateTime now () {
167167 return LocalDateTime .now ();
0 commit comments