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 |
Data.DotNet.TimeSpan
Description
.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 #
Initializes a new instance of the TimeSpan structure to the specified number of ticks.
timeSpanHoursMinsSecs :: Int64 -> Int64 -> Int64 -> TimeSpan #
Initializes a new instance of the TimeSpan structure to a specified number of hours, minutes, and seconds.
timeSpanDaysHoursMinsSecs :: Int64 -> Int64 -> Int64 -> Int64 -> TimeSpan #
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 #
Initializes a new instance of the TimeSpan structure to a specified number of days, hours, minutes, seconds, and milliseconds.
Gets the number of ticks that represent the value of the current TimeSpan
structure.
Gets the days component of the time interval represented by the current
TimeSpan
structure.
Gets the hours component of the time interval represented by the current
TimeSpan
structure.
minutes :: TimeSpan -> Int64 #
Gets the minutes component of the time interval represented by the current
TimeSpan
structure.
seconds :: TimeSpan -> Int64 #
Gets the seconds component of the time interval represented by the current
TimeSpan
structure.
Gets the milliseconds component of the time interval represented by the
current TimeSpan
structure.
fromSeconds :: Double -> TimeSpan #
Returns a TimeSpan
that represents a specified number of seconds, where
the specification is accurate to the nearest millisecond.
fromMinutes :: Double -> TimeSpan #
Returns a TimeSpan
that represents a specified number of minutes, where
the specification is accurate to the nearest millisecond.
fromHours :: Double -> TimeSpan #
Returns a TimeSpan
that represents a specified number of hours, where the
specification is accurate to the nearest millisecond.
fromDays :: Double -> TimeSpan #
Returns a TimeSpan
that represents a specified number of days, where the
specification is accurate to the nearest millisecond.
totalDays :: TimeSpan -> Double #
Gets the value of the current TimeSpan
structure expressed in whole and
fractional days.
totalHours :: TimeSpan -> Double #
Gets the value of the current TimeSpan
structure expressed in whole and
fractional hours.
totalMinutes :: TimeSpan -> Double #
Gets the value of the current TimeSpan
structure expressed in whole and
fractional minutes.
totalSeconds :: TimeSpan -> Double #
Gets the value of the current TimeSpan
structure expressed in whole and
fractional seconds.
totalMillis :: TimeSpan -> Double #
Gets the value of the current TimeSpan
structure expressed in whole and
fractional milliseconds.