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
Release history Release notifications | RSS feed
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 hashes)