Table of Contents

Class Norway

Namespace
NanoQL.Time
Assembly
NanoQL.dll

The Norwegian calendar.

public sealed class Norway : Calendar, IEquatable<Calendar>
Inheritance
Norway
Implements
Inherited Members

Remarks

Holidays:

  • Saturdays
  • Sundays
  • Holy Thursday
  • Good Friday
  • Easter Monday
  • Ascension
  • Whit(Pentecost) Monday
  • New Year's Day, January 1st
  • May Day, May 1st
  • National Independence Day, May 17th
  • Christmas Eve, December 24th
  • Christmas, December 25th
  • Boxing Day, December 26th

Constructors

Norway()

Initializes a new instance of the Norway class.

public Norway()

Properties

Name

Gets the calendar's name, used for output and comparison; not meant for switch-on-type code.

public override string Name { get; }

Property Value

string

Methods

IsBusinessDayCore(Date)

Whether the date is a business day by the calendar's own rules, before added and removed holidays.

protected override bool IsBusinessDayCore(Date date)

Parameters

date Date

Returns

bool

true for a business day.

IsWeekend(Weekday)

Whether the weekday is part of the weekend for the given market.

public override bool IsWeekend(Weekday w)

Parameters

w Weekday

The weekday.

Returns

bool

true for a weekend day.