|
Java API by Zvi Har’El |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgauss.Taarich
public class Taarich
An instance of the class Taarich represents an Hebrew date.
| 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 |
|---|
private int d
private int m
private int y
public static final String[] hmonths
public static final String[] months
| Constructor Detail |
|---|
public Taarich(int d,
int m,
int y)
d - the Gregorian day-of-the-monthm - the Gregorian monthy - the Gregorian year. The year Y BC is referred to as -Y+1.| Method Detail |
|---|
public static void main(String[] args)
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.
args - the arguments.
Error - if there is an argument mismatch.public String toHebrew()
public String toString()
toString in class Object
|
Java API by Zvi Har’El |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||