F# Data


TextConversions

Namespace: FSharp.Data

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

Static members

Static memberDescription
AsBoolean(text)
Signature: text:string -> bool option
AsDateTime(cultureInfo text)
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

AsDecimal(cultureInfo text)
Signature: cultureInfo:IFormatProvider -> text:string -> decimal option
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

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

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

DefaultCurrencyAdorners
Signature: Set<char>

¤ $ ¢ £ ¥ ฿ ؋ ƒ

CompiledName: get_DefaultCurrencyAdorners

DefaultMissingValues
Signature: string []

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

CompiledName: get_DefaultMissingValues

DefaultNonCurrencyAdorners
Signature: Set<char>

%

CompiledName: get_DefaultNonCurrencyAdorners

Fork me on GitHub