Java API by
Zvi Har’El

gauss
Class Taarich

java.lang.Object
  extended by gauss.Taarich

public class Taarich
extends Object

An instance of the class Taarich represents an Hebrew date.

Version:
$Id: Taarich.java,v 1.39 2003/08/16 08:06:17 rl Exp $
Author:
Zvi Har’El
See Also:
Class source code

Field Summary
private  int d
          Hebrew day-of-the-month.
static String[] hmonths
          The Hebrew months names, as UNICODE Hebrew character strings.
private  int m
          Hebrew month.
static String[] months
          The Hebrew month names in Latin transliteration.
private  int y
          Hebrew year.
 
Constructor Summary
Taarich(int d, int m, int y)
          Create a Taarich object representing the Hebrew equivalent of a given Gregorian date.
 
Method Summary
static void main(String[] args)
          Read the command line arguments, construct a Taarich object and print it.
 String toHebrew()
          Return a Hebrew date as a UNICODE Hebrew character string.
 String toString()
          Return a Hebrew date in Latin transliteration as a character string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

d

private int d
Hebrew day-of-the-month.


m

private int m
Hebrew month. The months are counted from Nisan, Adar being the twelveth. In a leap year, we denote the two Adars by 13 and 14.


y

private int y
Hebrew year.


hmonths

public static final String[] hmonths
The Hebrew months names, as UNICODE Hebrew character strings.


months

public static final String[] months
The Hebrew month names in Latin transliteration.

Constructor Detail

Taarich

public Taarich(int d,
               int m,
               int y)
Create a Taarich object representing the Hebrew equivalent of a given Gregorian date. Dates before 15 October 1582 are considered Julean.

Parameters:
d - the Gregorian day-of-the-month
m - the Gregorian month
y - the Gregorian year. The year Y BC is referred to as -Y+1.
Method Detail

main

public static void main(String[] args)
Read the command line arguments, construct a Taarich object and print it.

Synopsys:

        java [-Dhebrew] gauss.Taarich [date month year]
 

If no arguments are given, the current date is used, with the Hebrew date incremented after 18:00 local time.

Parameters:
args - the arguments.
Throws:
Error - if there is an argument mismatch.

toHebrew

public String toHebrew()
Return a Hebrew date as a UNICODE Hebrew character string.


toString

public String toString()
Return a Hebrew date in Latin transliteration as a character string.

Overrides:
toString in class Object

Java API by
Zvi Har’El

Copyright © Zvi Har’El
$Date: 2007/10/15 13:50:30$