Skip to main content

Handeling strings in datetime

Project description

String to Date Time Format

If You importing your data from a .csv file ,might be some time you can get the error as improper format for date time library then you can use this library to convert to a suitable format for your data.

installation

  • command Prompt -pip install string_dtm
  • Jp notebook >! pip install string_dtm

Use

  • import string_dtm
  • from string_dtm import convert
  • convert.to_fmt(string,format) EX :-
  • string='14-11-2005 00:00'
  • format='%Y-%m-%d %H:%M:%S' convert.to_fmt(string,format)
  • Result > 2005-11-14 00:00:00

Authors

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

strdtm-0.0.1.tar.gz (1.8 kB view details)

Uploaded Source

File details

Details for the file strdtm-0.0.1.tar.gz.

File metadata

  • Download URL: strdtm-0.0.1.tar.gz
  • Upload date:
  • Size: 1.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.8.1 keyring/23.1.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.7

File hashes

Hashes for strdtm-0.0.1.tar.gz
Algorithm Hash digest
SHA256 bf88d69032b6048e2b1d921e856ddd7e01e2f4ba43f7a792e3bc69df6d24b6e2
MD5 2a040ef4d3086d9eedf4699482c0e9e4
BLAKE2b-256 b195bedb2ac02630b1b7f6bee78040259c012b3d7add4a5a5aae62285efbbd8d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page