Package overit.geocall.scheduler
Class SDate
java.lang.Object
java.util.Calendar
java.util.GregorianCalendar
overit.geocall.scheduler.SDate
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<Calendar>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.Calendar
Calendar.Builder -
Field Summary
Fields inherited from class java.util.GregorianCalendar
AD, BCFields inherited from class java.util.Calendar
ALL_STYLES, AM, AM_PM, APRIL, areFieldsSet, AUGUST, DATE, DAY_OF_MONTH, DAY_OF_WEEK, DAY_OF_WEEK_IN_MONTH, DAY_OF_YEAR, DECEMBER, DST_OFFSET, ERA, FEBRUARY, FIELD_COUNT, fields, FRIDAY, HOUR, HOUR_OF_DAY, isSet, isTimeSet, JANUARY, JULY, JUNE, LONG, LONG_FORMAT, LONG_STANDALONE, MARCH, MAY, MILLISECOND, MINUTE, MONDAY, MONTH, NARROW_FORMAT, NARROW_STANDALONE, NOVEMBER, OCTOBER, PM, SATURDAY, SECOND, SEPTEMBER, SHORT, SHORT_FORMAT, SHORT_STANDALONE, SUNDAY, THURSDAY, time, TUESDAY, UNDECIMBER, WEDNESDAY, WEEK_OF_MONTH, WEEK_OF_YEAR, YEAR, ZONE_OFFSET -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSeconds(int m) Adds secondsintdayHour()Returns the hour of the dayintReturns the minutes of the hourintmonthDay()Returns the day of the monthintweekDay()Returns the day of the weekMethods inherited from class java.util.GregorianCalendar
add, clone, computeFields, computeTime, equals, from, getActualMaximum, getActualMinimum, getCalendarType, getGreatestMinimum, getGregorianChange, getLeastMaximum, getMaximum, getMinimum, getTimeZone, getWeeksInWeekYear, getWeekYear, hashCode, isLeapYear, isWeekDateSupported, roll, roll, setGregorianChange, setTimeZone, setWeekDate, toZonedDateTimeMethods inherited from class java.util.Calendar
after, before, clear, clear, compareTo, complete, get, getAvailableCalendarTypes, getAvailableLocales, getDisplayName, getDisplayNames, getFirstDayOfWeek, getInstance, getInstance, getInstance, getInstance, getMinimalDaysInFirstWeek, getTime, getTimeInMillis, internalGet, isLenient, isSet, set, set, set, set, setFirstDayOfWeek, setLenient, setMinimalDaysInFirstWeek, setTime, setTimeInMillis, toInstant, toString
-
Constructor Details
-
SDate
public SDate()Creates a new SDate -
SDate
Creates a new SDate- Parameters:
gc- TheGregorianCalendar
-
SDate
Creates a new SDate- Parameters:
date- The Date
-
SDate
Creates a new SDate- Parameters:
date- The Datetime- The time
-
SDate
Creates a new SDate- Parameters:
date- The datetime- The time
-
-
Method Details
-
addSeconds
public void addSeconds(int m) Adds seconds- Parameters:
m- The seconds to add
-
weekDay
public int weekDay()Returns the day of the week- Returns:
- The day of the week
-
monthDay
public int monthDay()Returns the day of the month- Returns:
- The day of the month
-
dayHour
public int dayHour()Returns the hour of the day- Returns:
- The hour of the day
-
hourMinutes
public int hourMinutes()Returns the minutes of the hour- Returns:
- The minutes of the hour
-