F# Data


TextConversions

Namespace: FSharp.Data

Conversions from string to string/int/int64/decimal/float/boolean/datetime/timespan/guid options

Static members

Static memberDescription
TextConversions.AsBoolean(text)
Signature: text:string -> bool option
TextConversions.AsDateTime(...)
Signature: cultureInfo:IFormatProvider -> text:string -> DateTime option

Parse date time using either the JSON milliseconds format or using ISO 8601 that is, either /Date(<msec-since-1/1/1970>)/ or something along the lines of 2013-01-28T00:37Z

TextConversions.AsDateTimeOffset(...)
Signature: cultureInfo:IFormatProvider -> text:string -> DateTimeOffset option
TextConversions.AsDecimal(...)
Signature: cultureInfo:IFormatProvider -> text:string -> decimal option
TextConversions.AsFloat(...)
Signature: (missingValues:string []) -> useNoneForMissingValues:bool -> cultureInfo:IFormatProvider -> text:string -> float option

if useNoneForMissingValues is true, NAs are returned as None, otherwise Some Double.NaN is used

TextConversions.AsGuid(text)
Signature: text:string -> Guid option
TextConversions.AsInteger(...)
Signature: cultureInfo:IFormatProvider -> text:string -> int option
TextConversions.AsInteger64(...)
Signature: cultureInfo:IFormatProvider -> text:string -> int64 option
TextConversions.AsString(str)
Signature: str:string -> string option

Turns empty or null string value into None, otherwise returns Some

TextConversions.AsTimeSpan(...)
Signature: cultureInfo:CultureInfo -> text:string -> TimeSpan option
TextConversions.DefaultCurrencyAdorners
Signature: Set<char>

¤ $ ¢ £ ¥ ฿ ؋ ƒ

CompiledName: get_DefaultCurrencyAdorners

TextConversions.DefaultMissingValues
Signature: string []

NaN NA N/A #N/A : - TBA TBD

CompiledName: get_DefaultMissingValues

TextConversions.DefaultNonCurrencyAdorners(...)
Signature: Set<char>

%

CompiledName: get_DefaultNonCurrencyAdorners

Fork me on GitHub