dotnet-timespan-0.0.1.0: .NET TimeSpan

Copyright(C) 2016 Yorick Laupa
License(see the file LICENSE)
MaintainerYorick Laupa <yo.eight@gmail.com>
Stabilityprovisional
Portabilitynon-portable
Safe HaskellSafe
LanguageHaskell2010

Data.DotNet.TimeSpan.Internal

Description

.NET TimeSpan implemented in Haskell.

Synopsis

Documentation

newtype TimeSpan Source

.NET TimeSpan: Represents a time interval.

Constructors

TimeSpan Int64 

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.

padded :: Int -> a -> [a] -> [a] Source