Copyright | (C) 2016 Yorick Laupa |
---|---|
License | (see the file LICENSE) |
Maintainer | Yorick Laupa <yo.eight@gmail.com> |
Stability | provisional |
Portability | non-portable |
Safe Haskell | Safe |
Language | Haskell2010 |
.NET TimeSpan implemented in Haskell.
- data TimeSpan
- timeSpanTicks :: Int64 -> TimeSpan
- timeSpanHoursMinsSecs :: Int64 -> Int64 -> Int64 -> TimeSpan
- timeSpanDaysHoursMinsSecs :: Int64 -> Int64 -> Int64 -> Int64 -> TimeSpan
- timeSpanDaysHoursMinsSecsMillis :: Int64 -> Int64 -> Int64 -> Int64 -> Int64 -> TimeSpan
- ticks :: TimeSpan -> Int64
- days :: TimeSpan -> Int64
- hours :: TimeSpan -> Int64
- minutes :: TimeSpan -> Int64
- seconds :: TimeSpan -> Int64
- millis :: TimeSpan -> Int64
- fromSeconds :: Double -> TimeSpan
- fromMinutes :: Double -> TimeSpan
- fromHours :: Double -> TimeSpan
- fromDays :: Double -> TimeSpan
- totalDays :: TimeSpan -> Double
- totalHours :: TimeSpan -> Double
- totalMinutes :: TimeSpan -> Double
- totalSeconds :: TimeSpan -> Double
- totalMillis :: TimeSpan -> Double
Documentation
.NET TimeSpan: Represents a time interval.
timeSpanTicks :: Int64 -> TimeSpan Source
Initializes a new instance of the TimeSpan structure to the specified number of ticks.
timeSpanHoursMinsSecs :: Int64 -> Int64 -> Int64 -> TimeSpan Source
Initializes a new instance of the TimeSpan structure to a specified number of hours, minutes, and seconds.
timeSpanDaysHoursMinsSecs :: Int64 -> Int64 -> Int64 -> Int64 -> TimeSpan Source
Initializes a new instance of the TimeSpan structure to a specified number of days, hours, minutes, and seconds.
timeSpanDaysHoursMinsSecsMillis :: Int64 -> Int64 -> Int64 -> Int64 -> Int64 -> TimeSpan Source
Initializes a new instance of the TimeSpan structure to a specified number of days, hours, minutes, seconds, and milliseconds.
ticks :: TimeSpan -> Int64 Source
Gets the number of ticks that represent the value of the current TimeSpan
structure.
days :: TimeSpan -> Int64 Source
Gets the days component of the time interval represented by the current
TimeSpan
structure.
hours :: TimeSpan -> Int64 Source
Gets the hours component of the time interval represented by the current
TimeSpan
structure.
minutes :: TimeSpan -> Int64 Source
Gets the minutes component of the time interval represented by the current
TimeSpan
structure.
seconds :: TimeSpan -> Int64 Source
Gets the seconds component of the time interval represented by the current
TimeSpan
structure.
millis :: TimeSpan -> Int64 Source
Gets the milliseconds component of the time interval represented by the
current TimeSpan
structure.
fromSeconds :: Double -> TimeSpan Source
Returns a TimeSpan
that represents a specified number of seconds, where
the specification is accurate to the nearest millisecond.
fromMinutes :: Double -> TimeSpan Source
Returns a TimeSpan
that represents a specified number of minutes, where
the specification is accurate to the nearest millisecond.
fromHours :: Double -> TimeSpan Source
Returns a TimeSpan
that represents a specified number of hours, where the
specification is accurate to the nearest millisecond.
fromDays :: Double -> TimeSpan Source
Returns a TimeSpan
that represents a specified number of days, where the
specification is accurate to the nearest millisecond.
totalDays :: TimeSpan -> Double Source
Gets the value of the current TimeSpan
structure expressed in whole and
fractional days.
totalHours :: TimeSpan -> Double Source
Gets the value of the current TimeSpan
structure expressed in whole and
fractional hours.
totalMinutes :: TimeSpan -> Double Source
Gets the value of the current TimeSpan
structure expressed in whole and
fractional minutes.
totalSeconds :: TimeSpan -> Double Source
Gets the value of the current TimeSpan
structure expressed in whole and
fractional seconds.
totalMillis :: TimeSpan -> Double Source
Gets the value of the current TimeSpan
structure expressed in whole and
fractional milliseconds.