Skip to content

Commit

Permalink
Format code
Browse files Browse the repository at this point in the history
  • Loading branch information
lulunac27a committed Jul 25, 2024
1 parent a8f00e6 commit e089959
Showing 1 changed file with 22 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.example.lulunac27a.datetimethymeleaf.entity;

public class DateTime {//class with date and time information with milliseconds, microseconds and nanoseconds
public class DateTime {// class with date and time information with milliseconds, microseconds and
// nanoseconds
private int year;
private int month;
private int day;
Expand All @@ -10,60 +11,78 @@ public class DateTime {//class with date and time information with milliseconds,
private int millisecond;
private int microsecond;
private int nanosecond;
//get getter and setter values for all fields

// get getter and setter values for all fields
public int getYear() {
return year;
}

public void setYear(int year) {
this.year = year;
}

public int getMonth() {
return month;
}

public void setMonth(int month) {
this.month = month;
}

public int getDay() {
return day;
}

public void setDay(int day) {
this.day = day;
}

public int getHour() {
return hour;
}

public void setHour(int hour) {
this.hour = hour;
}

public int getMinute() {
return minute;
}

public void setMinute(int minute) {
this.minute = minute;
}

public int getSecond() {
return second;
}

public void setSecond(int second) {
this.second = second;
}

public int getMillisecond() {
return millisecond;
}

public void setMillisecond(int millisecond) {
this.millisecond = millisecond;
}

public int getMicrosecond() {
return microsecond;
}

public void setMicrosecond(int microsecond) {
this.microsecond = microsecond;
}

public int getNanosecond() {
return nanosecond;
}

public void setNanosecond(int nanosecond) {
this.nanosecond = nanosecond;
}

}

0 comments on commit e089959

Please sign in to comment.