Java Code Examples for java.util.Calendar.setLenient()

The following are Jave code examples for showing how to use setLenient() of the java.util.Calendar class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: java_mooc_fi   File: PersonTest.java   View Source Code Vote up 6 votes
@Test
@Points("93.1")
public void ageTest2() {
    Calendar nyt = Calendar.getInstance();

    nyt.setLenient(true);
    nyt.add(Calendar.YEAR, -1);

    int vuosi = nyt.get(Calendar.YEAR);
    int kuukausi = nyt.get(Calendar.MONTH) + 1;
    int paiva = nyt.get(Calendar.DATE);
    Person henkilo = new Person("Sälli", paiva, kuukausi, vuosi);
    int ika = henkilo.age();
    assertTrue("The age of person born year ago should be 1, "
            + "returned age was: " + ika, (ika == 1));
}
 
Example 2
Project: unitimes   File: ExamGridTable.java   View Source Code Vote up 6 votes
public int getDay(int week, int dayOfWeek) {
    Calendar c = Calendar.getInstance(Locale.US);
    c.setTime(iForm.getSessionBeginDate());
    c.setLenient(true);
    c.add(Calendar.WEEK_OF_YEAR, week-1);
    c.add(Calendar.DAY_OF_WEEK, dayOfWeek - c.get(Calendar.DAY_OF_WEEK));
    Calendar ec = Calendar.getInstance(Locale.US);
    ec.setTime(iForm.getExamBeginDate());
    return c.get(Calendar.DAY_OF_YEAR)-ec.get(Calendar.DAY_OF_YEAR);
}
 
Example 3
Project: java_mooc_fi   File: PersonTest.java   View Source Code Vote up 6 votes
@Test
@Points("93.1")
public void ageTest4() {
    Calendar nyt = Calendar.getInstance();

    nyt.setLenient(true);
    nyt.add(Calendar.YEAR, -27);
    nyt.add(Calendar.MONTH, 5);
    nyt.add(Calendar.DATE, 27);

    int vuosi = nyt.get(Calendar.YEAR);
    int kuukausi = nyt.get(Calendar.MONTH) + 1;
    int paiva = nyt.get(Calendar.DATE);
    Person henkilo = new Person("Sälli", paiva, kuukausi, vuosi);
    int ika = henkilo.age();
    assertTrue("The age of person born more than 26 years ago but less than 27 years ago should be 26"
            + ". Returned age was: " + ika, (ika == 26));
}
 
Example 4
Project: date-helper   File: DateHelper.java   View Source Code Vote up 6 votes
/**
 * @return Ein Calendar mit Local CH_DE, Datum und Zeit sind undefiniert.
 */

protected static Calendar getCalendar() {

	Calendar calendar = Calendar.getInstance(LOCALE_DE_CH);
	calendar.setLenient(false);
	calendar.clear();
	return calendar;
}
 
Example 5
Project: unitimes   File: ExamGridTable.java   View Source Code Vote up 6 votes
public int getDayOfWeek(int day) {
    Calendar cal = Calendar.getInstance(Locale.US);
    cal.setTime(iForm.getExamBeginDate());
    cal.setLenient(true);
    cal.add(Calendar.DAY_OF_YEAR, day);
    return cal.get(Calendar.DAY_OF_WEEK);
}
 
Example 6
Project: unitimes   File: ExamGridTable.java   View Source Code Vote up 6 votes
public String getWeekName(int week) {
    Calendar c = Calendar.getInstance(Locale.US);
    c.setTime(iForm.getSessionBeginDate());
    c.setLenient(true);
    c.add(Calendar.WEEK_OF_YEAR, week-1);
    Formats.Format<Date> df = Formats.getDateFormat(Formats.Pattern.DATE_EVENT_SHORT);
    while (c.get(Calendar.DAY_OF_WEEK)!=Calendar.MONDAY) c.add(Calendar.DAY_OF_YEAR, -1);
    String first = df.format(c.getTime());
    while (c.get(Calendar.DAY_OF_WEEK)!=Calendar.SUNDAY) c.add(Calendar.DAY_OF_YEAR, 1);
    String end = df.format(c.getTime());
    return "Week "+week+"<br>"+first+" - "+end;
}
 
Example 7
Project: unitimes   File: ClassInfoConnector.java   View Source Code Vote up 6 votes
protected static Date firstDate(DatePattern dp, int dayCode) {
   	if (dp == null) return null;
   	BitSet weekCode = dp.getPatternBitSet();
   	if (weekCode.isEmpty()) return null;
   	Calendar cal = Calendar.getInstance(Locale.US); cal.setLenient(true);
   	Date dpFirstDate = DateUtils.getDate(1, dp.getSession().getPatternStartMonth(), dp.getSession().getSessionStartYear());
   	cal.setTime(dpFirstDate);
   	int idx = weekCode.nextSetBit(0);
   	cal.add(Calendar.DAY_OF_YEAR, idx);
   	while (idx < weekCode.size()) {
   		if (weekCode.get(idx)) {
       		int dow = cal.get(Calendar.DAY_OF_WEEK);
       		switch (dow) {
       		case Calendar.MONDAY:
       			if ((dayCode & DayCode.MON.getCode()) != 0) return cal.getTime();
       			break;
       		case Calendar.TUESDAY:
       			if ((dayCode & DayCode.TUE.getCode()) != 0) return cal.getTime();
       			break;
       		case Calendar.WEDNESDAY:
       			if ((dayCode & DayCode.WED.getCode()) != 0) return cal.getTime();
       			break;
       		case Calendar.THURSDAY:
       			if ((dayCode & DayCode.THU.getCode()) != 0) return cal.getTime();
       			break;
       		case Calendar.FRIDAY:
       			if ((dayCode & DayCode.FRI.getCode()) != 0) return cal.getTime();
       			break;
       		case Calendar.SATURDAY:
       			if ((dayCode & DayCode.SAT.getCode()) != 0) return cal.getTime();
       			break;
       		case Calendar.SUNDAY:
       			if ((dayCode & DayCode.SUN.getCode()) != 0) return cal.getTime();
       			break;
       		}
       	}
   		cal.add(Calendar.DAY_OF_YEAR, 1); idx++;
   	}
   	return null;
}
 
Example 8
Project: OpenJSharp   File: ExsltDatetime.java   View Source Code Vote up 6 votes
/**
 * Parse the input string and return the corresponding calendar field
 * number.
 */
private static double getNumber(String in, String[] formats, int calField)
  throws ParseException
{
  Calendar cal = Calendar.getInstance();
  cal.setLenient(false);
  // Try the allowed formats, from longest to shortest.
  Date date = testFormats(in, formats);
  if (date == null) return Double.NaN;
  cal.setTime(date);
  return cal.get(calField);
}
 
Example 9
Project: OperatieBRP   File: DatumUtil.java   View Source Code Vote up 6 votes
/**
 * Contoleer of de datum een geldige kalander datum is. Een (deels) onbekende datum is geen
 * geldige kalender datum.
 * @param datum String representatie van de datum 'yyyyMMdd'
 * @return true of false.
 */
public static boolean isGeldigeKalenderdatum(final Integer datum) {
    boolean geldig = datum != null && datum != 0;
    if (geldig) {
        try {
            final String datumString = datum.toString();
            final int jaar = Integer.parseInt(datumString.substring(0, 4));
            final int maand = Integer.parseInt(datumString.substring(4, 6));
            final int dag = Integer.parseInt(datumString.substring(6, 8));
            final Calendar c = new GregorianCalendar();
            c.setLenient(false);
            c.set(jaar, maand - 1, dag);
            c.getTime();
            geldig = true;
        } catch (final IllegalArgumentException e) {
            return false;
        }
    }
    return geldig;
}
 
Example 10
Project: openjdk-jdk10   File: CalendarRegression.java   View Source Code Vote up 6 votes
public void Test4051765() {
    Calendar cal = Calendar.getInstance();
    cal.setLenient(false);
    cal.set(DAY_OF_WEEK, 0);
    try {
        cal.getTime();
        errln("Fail: DAY_OF_WEEK 0 should be disallowed");
    } catch (IllegalArgumentException e) {
        return;
    }
}
 
Example 11
Project: asura   File: TriggerUtils.java   View Source Code Vote up 6 votes
/**
 * <p>
 * Get a <code>Date</code> object that represents the given time, on
 * today's date.
 * </p>
 * 
 * @param second
 *          The value (0-59) to give the seconds field of the date
 * @param minute
 *          The value (0-59) to give the minutes field of the date
 * @param hour
 *          The value (0-23) to give the hours field of the date
 * @return the new date
 */
public static Date getDateOf(int second, int minute, int hour) {
    validateSecond(second);
    validateMinute(minute);
    validateHour(hour);

    Date date = new Date();

    Calendar c = Calendar.getInstance();
    c.setTime(date);
    c.setLenient(true);

    c.set(Calendar.HOUR_OF_DAY, hour);
    c.set(Calendar.MINUTE, minute);
    c.set(Calendar.SECOND, second);
    c.set(Calendar.MILLISECOND, 0);

    return c.getTime();
}
 
Example 12
Project: unitimes   File: ExamGridTable.java   View Source Code Vote up 6 votes
public int getWeek(int day) {
    Calendar cal = Calendar.getInstance(Locale.US);
    cal.setTime(iForm.getExamBeginDate());
    cal.setLenient(true);
    cal.add(Calendar.DAY_OF_YEAR, day);
    int week = 1;
    while (cal.getTime().after(iForm.getSessionBeginDate()) && cal.get(Calendar.WEEK_OF_YEAR) != iForm.getSessionBeginWeek()) {
    	cal.add(Calendar.DAY_OF_YEAR, -7); week ++;
    }
    while (cal.getTime().before(iForm.getSessionBeginDate()) && cal.get(Calendar.WEEK_OF_YEAR) != iForm.getSessionBeginWeek()) {
    	cal.add(Calendar.DAY_OF_WEEK, 7); week --;
    }
    return week;
}
 
Example 13
Project: NotifyTools   File: DateTimeConverter.java   View Source Code Vote up 5 votes
/**
 * Convert a long value to the specified Date type for this
 * <i>Converter</i>.
 * <p>
 *
 * This method handles conversion to the following types:
 * <ul>
 *     <li><code>java.util.Date</code></li>
 *     <li><code>java.util.Calendar</code></li>
 *     <li><code>java.sql.Date</code></li>
 *     <li><code>java.sql.Time</code></li>
 *     <li><code>java.sql.Timestamp</code></li>
 * </ul>
 *
 * @param <T> The target type
 * @param type The Date type to convert to
 * @param value The long value to convert.
 * @return The converted date value.
 */
private <T> T toDate(final Class<T> type, final long value) {

    // java.util.Date
    if (type.equals(Date.class)) {
        return type.cast(new Date(value));
    }

    // java.sql.Date
    if (type.equals(java.sql.Date.class)) {
        return type.cast(new java.sql.Date(value));
    }

    // java.sql.Time
    if (type.equals(java.sql.Time.class)) {
        return type.cast(new java.sql.Time(value));
    }

    // java.sql.Timestamp
    if (type.equals(java.sql.Timestamp.class)) {
        return type.cast(new java.sql.Timestamp(value));
    }

    // java.util.Calendar
    if (type.equals(Calendar.class)) {
        Calendar calendar = null;
        if (locale == null && timeZone == null) {
            calendar = Calendar.getInstance();
        } else if (locale == null) {
            calendar = Calendar.getInstance(timeZone);
        } else if (timeZone == null) {
            calendar = Calendar.getInstance(locale);
        } else {
            calendar = Calendar.getInstance(timeZone, locale);
        }
        calendar.setTime(new Date(value));
        calendar.setLenient(false);
        return type.cast(calendar);
    }

    final String msg = toString(getClass()) + " cannot handle conversion to '"
               + toString(type) + "'";
    if (log().isWarnEnabled()) {
        log().warn("    " + msg);
    }
    throw new ConversionException(msg);
}
 
Example 14
Project: GitHub   File: Cookie.java   View Source Code Vote up 5 votes
/** Parse a date as specified in RFC 6265, section 5.1.1. */
private static long parseExpires(String s, int pos, int limit) {
  pos = dateCharacterOffset(s, pos, limit, false);

  int hour = -1;
  int minute = -1;
  int second = -1;
  int dayOfMonth = -1;
  int month = -1;
  int year = -1;
  Matcher matcher = TIME_PATTERN.matcher(s);

  while (pos < limit) {
    int end = dateCharacterOffset(s, pos + 1, limit, true);
    matcher.region(pos, end);

    if (hour == -1 && matcher.usePattern(TIME_PATTERN).matches()) {
      hour = Integer.parseInt(matcher.group(1));
      minute = Integer.parseInt(matcher.group(2));
      second = Integer.parseInt(matcher.group(3));
    } else if (dayOfMonth == -1 && matcher.usePattern(DAY_OF_MONTH_PATTERN).matches()) {
      dayOfMonth = Integer.parseInt(matcher.group(1));
    } else if (month == -1 && matcher.usePattern(MONTH_PATTERN).matches()) {
      String monthString = matcher.group(1).toLowerCase(Locale.US);
      month = MONTH_PATTERN.pattern().indexOf(monthString) / 4; // Sneaky! jan=1, dec=12.
    } else if (year == -1 && matcher.usePattern(YEAR_PATTERN).matches()) {
      year = Integer.parseInt(matcher.group(1));
    }

    pos = dateCharacterOffset(s, end + 1, limit, false);
  }

  // Convert two-digit years into four-digit years. 99 becomes 1999, 15 becomes 2015.
  if (year >= 70 && year <= 99) year += 1900;
  if (year >= 0 && year <= 69) year += 2000;

  // If any partial is omitted or out of range, return -1. The date is impossible. Note that leap
  // seconds are not supported by this syntax.
  if (year < 1601) throw new IllegalArgumentException();
  if (month == -1) throw new IllegalArgumentException();
  if (dayOfMonth < 1 || dayOfMonth > 31) throw new IllegalArgumentException();
  if (hour < 0 || hour > 23) throw new IllegalArgumentException();
  if (minute < 0 || minute > 59) throw new IllegalArgumentException();
  if (second < 0 || second > 59) throw new IllegalArgumentException();

  Calendar calendar = new GregorianCalendar(UTC);
  calendar.setLenient(false);
  calendar.set(Calendar.YEAR, year);
  calendar.set(Calendar.MONTH, month - 1);
  calendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);
  calendar.set(Calendar.HOUR_OF_DAY, hour);
  calendar.set(Calendar.MINUTE, minute);
  calendar.set(Calendar.SECOND, second);
  calendar.set(Calendar.MILLISECOND, 0);
  return calendar.getTimeInMillis();
}
 
Example 15
Project: L2jBrasil   File: TvTManager.java   View Source Code Vote up 5 votes
/**
 * Starts TvTStartTask
 */
public void scheduleEventStart()
{
	try
	{
		Calendar currentTime = Calendar.getInstance();
		Calendar nextStartTime = null;
		Calendar testStartTime = null;
		for (String timeOfDay : Config.TVT_EVENT_INTERVAL)
		{
			// Creating a Calendar object from the specified interval value
			testStartTime = Calendar.getInstance();
			testStartTime.setLenient(true);
			String[] splitTimeOfDay = timeOfDay.split(":");
			testStartTime.set(Calendar.HOUR_OF_DAY, Integer.parseInt(splitTimeOfDay[0]));
			testStartTime.set(Calendar.MINUTE, Integer.parseInt(splitTimeOfDay[1]));
			// If the date is in the past, make it the next day (Example: Checking for "1:00", when the time is 23:57.)
			if (testStartTime.getTimeInMillis() < currentTime.getTimeInMillis())
			{
				testStartTime.add(Calendar.DAY_OF_MONTH, 1);
			}
			// Check for the test date to be the minimum (smallest in the specified list)
			if (nextStartTime == null || testStartTime.getTimeInMillis() < nextStartTime.getTimeInMillis())
			{
				nextStartTime = testStartTime;
			}
		}
		_task = new TvTStartTask(nextStartTime.getTimeInMillis());
		ThreadPoolManager.getInstance().executeTask(_task);
	}
	catch (Exception e)
	{
		_log.warning("TvTEventEngine[TvTManager.scheduleEventStart()]: Error figuring out a start time. Check TvTEventInterval in config file.");
	}
}
 
Example 16
Project: unitimes   File: AverageHoursAWeekClassWeights.java   View Source Code Vote up 5 votes
public AverageHoursAWeekClassWeights(DataProperties config) {
	org.hibernate.Session hibSession = SessionDAO.getInstance().createNewSession();
	try {
		Session session = SessionDAO.getInstance().get(config.getPropertyLong("General.SessionId", -1l));
		iDaysOfWeek = new BitSet[Constants.DAY_CODES.length];
		for (int i = 0; i < iDaysOfWeek.length; i++)
			iDaysOfWeek[i] = new BitSet();
		Calendar cal = Calendar.getInstance(Locale.US); cal.setLenient(true);
		cal.setTime(DateUtils.getDate(1, session.getPatternStartMonth(), session.getSessionStartYear()));
		Date last = DateUtils.getDate(1, session.getPatternEndMonth(), session.getSessionStartYear());
		int idx = 0;
		while (cal.getTime().before(last)) {
       		int dow = cal.get(Calendar.DAY_OF_WEEK);
       		switch (dow) {
       		case Calendar.MONDAY:
       			iDaysOfWeek[Constants.DAY_MON].set(idx);
       			break;
       		case Calendar.TUESDAY:
       			iDaysOfWeek[Constants.DAY_TUE].set(idx);
       			break;
       		case Calendar.WEDNESDAY:
       			iDaysOfWeek[Constants.DAY_WED].set(idx);
       			break;
       		case Calendar.THURSDAY:
       			iDaysOfWeek[Constants.DAY_THU].set(idx);
       			break;
       		case Calendar.FRIDAY:
       			iDaysOfWeek[Constants.DAY_FRI].set(idx);
       			break;
       		case Calendar.SATURDAY:
       			iDaysOfWeek[Constants.DAY_SAT].set(idx);
       			break;
       		case Calendar.SUNDAY:
       			iDaysOfWeek[Constants.DAY_SUN].set(idx);
       			break;
       		}
       		cal.add(Calendar.DAY_OF_YEAR, 1); idx++;
		}
		if (session.getDefaultDatePattern() != null) {
			BitSet ddp = session.getDefaultDatePattern().getPatternBitSet();
			iCoeficient = 5.0 / (
					intersection(ddp, iDaysOfWeek[Constants.DAY_MON]) +
					intersection(ddp, iDaysOfWeek[Constants.DAY_TUE]) +
					intersection(ddp, iDaysOfWeek[Constants.DAY_WED]) +
					intersection(ddp, iDaysOfWeek[Constants.DAY_THU]) +
					intersection(ddp, iDaysOfWeek[Constants.DAY_FRI]));
					
		}
	} finally {
		hibSession.close();
	}
}
 
Example 17
Project: asura   File: DateIntervalTrigger.java   View Source Code Vote up 5 votes
/**
 * <p>
 * Returns the final time at which the <code>DateIntervalTrigger</code> will
 * fire, if there is no end time set, null will be returned.
 * </p>
 * 
 * <p>
 * Note that the return time may be in the past.
 * </p>
 */
public Date getFinalFireTime() {
    if (complete || getEndTime() == null) {
        return null;
    }

    // back up a second from end time
    Date fTime = new Date(getEndTime().getTime() - 1000L);
    // find the next fire time after that
    fTime = getFireTimeAfter(fTime, true);
    
    // the the trigger fires at the end time, that's it!
    if(fTime.equals(getEndTime()))
        return fTime;
    
    // otherwise we have to back up one interval from the fire time after the end time
    
    Calendar lTime = Calendar.getInstance();
    lTime.setTime(fTime);
    lTime.setLenient(true);
    
    if(getRepeatIntervalUnit().equals(IntervalUnit.SECOND)) {
        lTime.add(java.util.Calendar.SECOND, -1 * getRepeatInterval());
    }
    else if(getRepeatIntervalUnit().equals(IntervalUnit.MINUTE)) {
        lTime.add(java.util.Calendar.MINUTE, -1 * getRepeatInterval());
    }
    else if(getRepeatIntervalUnit().equals(IntervalUnit.HOUR)) {
        lTime.add(java.util.Calendar.HOUR_OF_DAY, -1 * getRepeatInterval());
    }
    else if(getRepeatIntervalUnit().equals(IntervalUnit.DAY)) {
        lTime.add(java.util.Calendar.DAY_OF_YEAR, -1 * getRepeatInterval());
    }
    else if(getRepeatIntervalUnit().equals(IntervalUnit.WEEK)) {
        lTime.add(java.util.Calendar.WEEK_OF_YEAR, -1 * getRepeatInterval());
    }
    else if(getRepeatIntervalUnit().equals(IntervalUnit.MONTH)) {
        lTime.add(java.util.Calendar.MONTH, -1 * getRepeatInterval());
    }
    else if(getRepeatIntervalUnit().equals(IntervalUnit.YEAR)) {
        lTime.add(java.util.Calendar.YEAR, -1 * getRepeatInterval());
    }

    return lTime.getTime();
}
 
Example 18
Project: myfaces-trinidad   File: DateFieldAsRenderer.java   View Source Code Vote up 5 votes
@SuppressWarnings("unchecked")
private void _addChildren(FacesContext context, UIComponent component)
{
  // If the components are already there, bail.
  if (component.getFacet("month") != null)
    return;

  String id = component.getId();
  if (id == null)
  {
    id = context.getViewRoot().createUniqueId();
    component.setId(id);
  }

  Map<String, UIComponent> facets = component.getFacets();
  facets.clear();

  Date value = (Date) ((EditableValueHolder) component).getValue();
  Calendar calendar = null;
  if(value != null)
  {
    calendar = Calendar.getInstance();
    calendar.setLenient(true);
    calendar.setTime(value);
  }

  CoreInputText month = _createTwoDigitInput(context);
  month.setShortDesc("Month");
  month.setId(id + "_month");

  LongRangeValidator monthRange = _createLongRangeValidator(context);
  monthRange.setMinimum(1);
  monthRange.setMaximum(12);
  month.addValidator(monthRange);
  if (value != null)
    month.setValue(new Integer(calendar.get(Calendar.MONTH) + 1));
  facets.put("month", month);

  CoreInputText day = _createTwoDigitInput(context);
  day.setShortDesc("Day");
  day.setId(id + "_day");
  LongRangeValidator dayRange = _createLongRangeValidator(context);
  dayRange.setMinimum(1);
  dayRange.setMaximum(31);
  day.addValidator(dayRange);
  if (value != null)
    day.setValue(new Integer(calendar.get(Calendar.DAY_OF_MONTH)));
  facets.put("day", day);

  CoreInputText year = _createTwoDigitInput(context);
  year.setShortDesc("Year");
  year.setId(id + "_year");
  if (value != null)
  {
    int yearValue = calendar.get(Calendar.YEAR) - 1900;
    if (yearValue >= 100)
      yearValue -= 100;
    year.setValue(new Integer(yearValue));
  }

  facets.put("year", year);
}
 
Example 19
Project: winter   File: CalendarUtil.java   View Source Code Vote up 4 votes
/**
 * Validate the actual date of the given date elements and returns a calendar instance based on
 * the given date elements.
 * @param year The year part of the date.
 * @param month The month part of the date.
 * @param day The day part of the date.
 * @param hour The hour part of the date.
 * @param minute The minute part of the date.
 * @param second The second part of the date.
 * @return A Calendar instance prefilled with the given date elements.
 * @throws IllegalArgumentException If the given date elements does not represent a valid date.
 */
public static Calendar getValidCalendar(
    int year, int month, int day, int hour, int minute, int second)
{
    Calendar calendar = Calendar.getInstance();
    calendar.clear();
    calendar.setLenient(false); // Don't automatically convert invalid date.
    calendar.set(year, month - 1, day, hour, minute, second);
    calendar.getTimeInMillis(); // Lazy update, throws IllegalArgumentException if invalid date.
    return calendar;
}
 
Example 20
Project: lams   File: DateUtils.java   View Source Code Vote up 4 votes
/**
 * Sets the specified field to a date returning a new object.  
 * This does not use a lenient calendar.
 * The original date object is unchanged.
 *
 * @param date  the date, not null
 * @param calendarField  the calendar field to set the amount to
 * @param amount the amount to set
 * @return a new Date object set with the specified value
 * @throws IllegalArgumentException if the date is null
 * @since 2.4
 */
private static Date set(Date date, int calendarField, int amount) {
    if (date == null) {
        throw new IllegalArgumentException("The date must not be null");
    }
    // getInstance() returns a new object, so this method is thread safe.
    Calendar c = Calendar.getInstance();
    c.setLenient(false);
    c.setTime(date);
    c.set(calendarField, amount);
    return c.getTime();
}