Documentation of 'tig.Dates' Java class
Dates
tig

Class Dates

  • All Implemented Interfaces:
    GeneralConstants


    public abstract class Dates
    extends java.lang.Object
    implements GeneralConstants
    Class containing utility static methods for date manipulation.
    Dates are represented as an array of integers.
    The internationalization of this class is hard coded (French and English are supported).
    This class handles :
  • Date - julian day conversions (dateToJd(), jdToDate()).
  • Conversion between a String and a date (parseDate(), parseHour()).
  • Date formatting for display (formatDate(), formatHour()).
Parameters:
strDate - A String containing the date, as specified above.
lang - language code, as specified by ISO-639 norm (supported languages : "en" and "fr").
Returns:
an array of integers in which are stored (in this order) years, months, days.
Throws:
java.lang.IllegalArgumentException - if parameter 'lang' is different from 'en' or 'fr'.
DateFormatException - if parameter 'strDate' is not correctly formatted.
Parameters:
strHour - A String containing the hour, as specified above..
lang - language code, as specified by ISO-639 norm (supported languages : 'en' and 'fr').
Returns:
an array of integers in which are stored (in this order) hours, minuts, seconds.
Throws:
HourFormatException - if parameter 'strHour' is not correctly formatted.
java.lang.IllegalArgumentException - if parameter 'lang' is different from 'en' or 'fr'.
Skip navigation links

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.