public class

Time

extends Object
java.lang.Object
   ↳ com.datalogic.cradle.Time

Class Overview

This class contains informations about RTC (Real Time Clock) date and time of the Cradle. This class is also used by FailureOccurrence in order to retrive information about when a failure appeared and disappeared

Summary

Public Methods
int getDay()
Retrieves the day of the Cradle Time.
int getHour()
Retrieves the hour of the Cradle Time.
int getMinutes()
Retrieves the minutes of the Cradle Time.
int getMonth()
Retrieves the month of the Cradle Time.
int getYear()
Retrieves the year of the Cradle Time.
String toString()
Retrieve the Date and Time information as String in the format hh:mm dd/mm/yyyy.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public int getDay ()

Added in revision 46

Retrieves the day of the Cradle Time.

Returns
  • int The day of the Cradle Time.

public int getHour ()

Added in revision 46

Retrieves the hour of the Cradle Time.

Returns
  • int The hour of the Cradle Time.

public int getMinutes ()

Added in revision 46

Retrieves the minutes of the Cradle Time.

Returns
  • int The minutes of the Cradle Time.

public int getMonth ()

Added in revision 46

Retrieves the month of the Cradle Time.

Returns
  • int The month of the Cradle Time.

public int getYear ()

Added in revision 46

Retrieves the year of the Cradle Time.

Returns
  • int The year of the Cradle Time.

public String toString ()

Retrieve the Date and Time information as String in the format hh:mm dd/mm/yyyy.

Returns
  • String The String representing the date and time.