KosherJava Zmanim Homepage

net.sourceforge.zmanim.hebrewcalendar
Class HebrewDateFormatter

java.lang.Object
  extended by net.sourceforge.zmanim.hebrewcalendar.HebrewDateFormatter

public class HebrewDateFormatter
extends Object

The HebrewDateFormatter class formats a JewishDate. This class is part of a refactoring of Avrom Finkelstien's HebrewDate class that removes formatting code from the core HebrewDate class. TODO: add additional formatting options including Hebrew formatting support.

Version:
0.1
Author:
© Avrom Finkelstien 2002, © Eliyahu Hershfeld 2011
See Also:
Date, Calendar

Constructor Summary
HebrewDateFormatter()
           
 
Method Summary
static String getHebrewDateAsString(JewishDate hd)
          Returns a string containing the Hebrew date in the form, "day Month, year" e.g. "21 Shevat, 5729"
static String getHebrewMonthAsString(JewishDate hd)
          returns a string of the current Hebrew month such as "Tishrei".
static String getOmerAsString(JewishDate hd)
          returns a String of the Omer day in the form "Omer X" or "Lag B'Omer" or an empty string if there is no Omer this day.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HebrewDateFormatter

public HebrewDateFormatter()
Method Detail

getHebrewDateAsString

public static String getHebrewDateAsString(JewishDate hd)
Returns a string containing the Hebrew date in the form, "day Month, year" e.g. "21 Shevat, 5729"


getHebrewMonthAsString

public static String getHebrewMonthAsString(JewishDate hd)
returns a string of the current Hebrew month such as "Tishrei".


getOmerAsString

public static String getOmerAsString(JewishDate hd)
returns a String of the Omer day in the form "Omer X" or "Lag B'Omer" or an empty string if there is no Omer this day. FIXME - Is this method really required?


KosherJava Zmanim Homepage

Copyright © 2004 - 2011 Eliyahu Hershfeld. All Rights Reserved. Released under the GPL 2 license