Struct Period
Represents mechanism for supporting predefined and custom periods
public struct Period : IComparable, IXElementSerialization
Constructors
Declaration
public Period(BasePeriod basePeriod, int periodMultiplier)
Parameters
Type |
Name |
Description |
BasePeriod |
basePeriod |
|
System.Int32 |
periodMultiplier |
|
Properties
Declaration
public BasePeriod BasePeriod { get; set; }
Property Value
Declaration
public static Period DAY1 { get; }
Property Value
Declaration
public static Period HOUR1 { get; }
Property Value
Declaration
public static Period HOUR12 { get; }
Property Value
Declaration
public static Period HOUR2 { get; }
Property Value
Declaration
public static Period HOUR3 { get; }
Property Value
Declaration
public static Period HOUR4 { get; }
Property Value
Declaration
public static Period HOUR6 { get; }
Property Value
Declaration
public static Period HOUR8 { get; }
Property Value
Declaration
public static Period MIN1 { get; }
Property Value
Declaration
public static Period MIN10 { get; }
Property Value
Declaration
public static Period MIN15 { get; }
Property Value
Declaration
public static Period MIN2 { get; }
Property Value
Declaration
public static Period MIN3 { get; }
Property Value
Declaration
public static Period MIN30 { get; }
Property Value
Declaration
public static Period MIN4 { get; }
Property Value
Declaration
public static Period MIN5 { get; }
Property Value
Declaration
public static Period MONTH1 { get; }
Property Value
Declaration
public int PeriodMultiplier { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
Declaration
public static Period SECOND1 { get; }
Property Value
Declaration
public static Period SECOND10 { get; }
Property Value
Declaration
public static Period SECOND15 { get; }
Property Value
Declaration
public static Period SECOND30 { get; }
Property Value
Declaration
public static Period SECOND5 { get; }
Property Value
Declaration
public static Period TICK1 { get; }
Property Value
Declaration
public long Ticks { get; }
Property Value
Type |
Description |
System.Int64 |
|
Declaration
public static Period WEEK1 { get; }
Property Value
Declaration
public static Period YEAR1 { get; }
Property Value
Methods
Returns shorted string according to base period type
Declaration
public static string BasePeriodToShortString(BasePeriod basePeriod)
Parameters
Returns
Type |
Description |
System.String |
|
Returns value in ticks according to base period type
Declaration
public static long TicksInBasePeriod(BasePeriod basePeriod)
Parameters
Returns
Type |
Description |
System.Int64 |
|
Converts time gap into dates range
Declaration
public void ToDatesRange(out DateTime from, out DateTime to)
Parameters
Type |
Name |
Description |
System.DateTime |
from |
|
System.DateTime |
to |
|