parse_float

class convert2.parse_float.Anything2Float[source]

Parse anything to float

The logic:

  • for int:
  • for float:
  • for str:
  • for datetime: it’s utc timestamp
  • for date: it’s days from ordinary
  • for timedelta: its total seconds