Header menu logo FSharp.Data

TextConversions Type

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

Static members

Static member Description

TextConversions.AsBoolean(text)

Full Usage: TextConversions.AsBoolean(text)

Parameters:
    text : string

Returns: bool option
text : string
Returns: bool option

TextConversions.AsDateTime(cultureInfo) (text)

Full Usage: TextConversions.AsDateTime(cultureInfo) (text)

Parameters:
Returns: 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`

cultureInfo : IFormatProvider
text : string
Returns: DateTime option

TextConversions.AsDateTimeOffset(cultureInfo) (text)

Full Usage: TextConversions.AsDateTimeOffset(cultureInfo) (text)

Parameters:
Returns: DateTimeOffset option
cultureInfo : IFormatProvider
text : string
Returns: DateTimeOffset option

TextConversions.AsDecimal(cultureInfo) (text)

Full Usage: TextConversions.AsDecimal(cultureInfo) (text)

Parameters:
Returns: decimal option
cultureInfo : IFormatProvider
text : string
Returns: decimal option

TextConversions.AsFloat(missingValues) (useNoneForMissingValues) (cultureInfo) (text)

Full Usage: TextConversions.AsFloat(missingValues) (useNoneForMissingValues) (cultureInfo) (text)

Parameters:
    missingValues : string[]
    useNoneForMissingValues : bool
    cultureInfo : IFormatProvider
    text : string

Returns: float option

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

missingValues : string[]
useNoneForMissingValues : bool
cultureInfo : IFormatProvider
text : string
Returns: float option

TextConversions.AsGuid(text)

Full Usage: TextConversions.AsGuid(text)

Parameters:
    text : string

Returns: Guid option
text : string
Returns: Guid option

TextConversions.AsInteger(cultureInfo) (text)

Full Usage: TextConversions.AsInteger(cultureInfo) (text)

Parameters:
Returns: int option
cultureInfo : IFormatProvider
text : string
Returns: int option

TextConversions.AsInteger64(cultureInfo) (text)

Full Usage: TextConversions.AsInteger64(cultureInfo) (text)

Parameters:
Returns: int64 option
cultureInfo : IFormatProvider
text : string
Returns: int64 option

TextConversions.AsString(str)

Full Usage: TextConversions.AsString(str)

Parameters:
    str : string

Returns: string option

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

str : string
Returns: string option

TextConversions.AsTimeSpan(cultureInfo) (text)

Full Usage: TextConversions.AsTimeSpan(cultureInfo) (text)

Parameters:
Returns: TimeSpan option
cultureInfo : CultureInfo
text : string
Returns: TimeSpan option

TextConversions.DefaultCurrencyAdorners

Full Usage: TextConversions.DefaultCurrencyAdorners

Returns: Set<char>

`¤` `$` `¢` `£` `¥` `₱` `﷼` `₤` `₭` `₦` `₨` `₩` `₮` `€` `฿` `₡` `៛` `؋` `₴` `₪` `₫` `₹` `ƒ`

Returns: Set<char>

TextConversions.DefaultMissingValues

Full Usage: TextConversions.DefaultMissingValues

Returns: string[]

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

Returns: string[]

TextConversions.DefaultNonCurrencyAdorners

Full Usage: TextConversions.DefaultNonCurrencyAdorners

Returns: Set<char>

`%` `‰` `‱`

Returns: Set<char>

Type something to start searching.