Skip to Main Content
C# in a Nutshell, Second Edition
book

C# in a Nutshell, Second Edition

by Peter Drayton, Ben Albahari, Ted Neward
August 2003
Intermediate to advanced content levelIntermediate to advanced
928 pages
32h 1m
English
O'Reilly Media, Inc.
Content preview from C# in a Nutshell, Second Edition

Name

HebrewCalendar

Synopsis

This calendar class implements the Hebrew calendar. This complicated calendar determines leap years within a 19-year cycle. The 3rd, 6th, 8th, 11th, 14th, 17th, and 19th years are leap years. Regular years have 12 months and between 353 and 355 days, and leap years have 13 months and between 383 and 385 days; the variance is determined by the placement of Jewish holidays. This implementation recognizes the years 5343 to 6000 (A.M.), which is equivalent to the Gregorian years 1582 to 2240.

public class HebrewCalendar : Calendar {
// Public Constructors
   public HebrewCalendar( );
// Public Static Fields
   public static readonly int HebrewEra;
// =1
                  // Public Instance Properties
   public override int[ ] Eras{get; }     
// overrides Calendar
   public override int TwoDigitYearMax{set; get; }    
// overrides Calendar
                  // Public Instance Methods
   public override DateTime AddMonths(DateTime time, int months);     
// overrides Calendar
   public override DateTime AddYears(DateTime time, int years)
// overrides Calendar
   public override int GetDayOfMonth(DateTime time); 
// overrides Calendar
   public override DayOfWeek GetDayOfWeek(DateTime time);  
// overrides Calendar
   public override int GetDayOfYear(DateTime time);  
// overrides Calendar
   public override int GetDaysInMonth(int year, int month, int era)
// overrides Calendar
   public override int GetDaysInYear(int year, int era);        
// overrides Calendar
   public override int GetEra(DateTime time);        
// overrides Calendar
   public override int GetMonth ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

C# in a Nutshell

C# in a Nutshell

Ben Albahari, Ted Neward, Peter Drayton
C# 7.0 in a Nutshell

C# 7.0 in a Nutshell

Joseph Albahari, Ben Albahari
C# Cookbook, 2nd Edition

C# Cookbook, 2nd Edition

Jay Hilyard, Stephen Teilhet
C# Cookbook

C# Cookbook

Joe Mayo

Publisher Resources

ISBN: 0596005261Catalog PageErrata