F# Data


TextConversions

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

Static members

Static memberDescription
AsBoolean(_cultureInfo text)
Signature: _cultureInfo:IFormatProvider -> 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()\/" 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

DefaultMissingValues
Signature: string []
Fork me on GitHub