Class MonthPayrollPeriod
Payroll month period, implements the IPayrollPeriod
Implements
Inherited Members
Namespace: PayrollEngine.Client.Scripting
Assembly: PayrollEngine.Client.Services.dll
Syntax
public class MonthPayrollPeriod : IPayrollPeriod
Constructors
View SourceMonthPayrollPeriod(CultureInfo, Calendar, DateTime)
Declaration
public MonthPayrollPeriod(CultureInfo culture, Calendar calendar, DateTime moment)
Parameters
| Type | Name | Description |
|---|---|---|
| CultureInfo | culture | |
| Calendar | calendar | |
| DateTime | moment |
MonthPayrollPeriod(CultureInfo, Calendar, int, int)
Initializes a new instance of the MonthPayrollPeriod class
Declaration
public MonthPayrollPeriod(CultureInfo culture, Calendar calendar, int year, int month)
Parameters
| Type | Name | Description |
|---|---|---|
| CultureInfo | culture | The culture |
| Calendar | calendar | The calendar |
| int | year | The year |
| int | month | The month |
Properties
View SourceCalendar
The date calendar
Declaration
public Calendar Calendar { get; }
Property Value
| Type | Description |
|---|---|
| Calendar |
Culture
The culture
Declaration
public CultureInfo Culture { get; }
Property Value
| Type | Description |
|---|---|
| CultureInfo |
End
Declaration
public virtual DateTime End { get; }
Property Value
| Type | Description |
|---|---|
| DateTime |
Name
Declaration
public virtual string Name { get; }
Property Value
| Type | Description |
|---|---|
| string |
Start
Declaration
public virtual DateTime Start { get; }
Property Value
| Type | Description |
|---|---|
| DateTime |
Methods
View SourceGetPayrollPeriod(DateTime, int)
Declaration
public virtual IPayrollPeriod GetPayrollPeriod(DateTime moment, int offset = 0)
Parameters
| Type | Name | Description |
|---|---|---|
| DateTime | moment | |
| int | offset |
Returns
| Type | Description |
|---|---|
| IPayrollPeriod |
ToString()
Returns a string that represents this instance
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | A string that represents this instance |