Class DaySegmentsHelper
- Namespace
- SunamoShared.Helpers
- Assembly
- SunamoShared.dll
Divides a day into 288 five-minute segments and provides methods to determine the current segment.
public class DaySegmentsHelper
- Inheritance
-
DaySegmentsHelper
- Inherited Members
- Extension Methods
Methods
GetSegment()
Gets the current time segment of the day based on the current time.
public static int GetSegment()
Returns
GetSegment(DateTime)
Gets the time segment of the day for the specified date and time.
public static int GetSegment(DateTime dateTime)
Parameters
dateTimeDateTimeThe date and time to calculate the segment for.