ets-labs / python-domain-models

Domain models framework for Python projects
BSD 3-Clause "New" or "Revised" License
22 stars 4 forks source link

Str to DateTime converter #19

Closed boonya closed 8 years ago

boonya commented 8 years ago

I have suggestion... If we convert any types to specific type in StrField, InitField and so on, than would be nice to convert string representation of datetime in DateTimeField and DateField. I have found python library called dateparser (https://dateparser.readthedocs.org/en/latest/). I've tried it -> https://gist.github.com/boonya/47ac31b2d74122b459fa and it works but I am not sure that we really need this one )

rmk135 commented 8 years ago

Hey @boonya ,

You know, I'm not sure that it can be applicable to the current conception of the library, cause domain_models conception is about creation of some kind of easy-to-use & easy-to-integrate domain modelling system, but not a data converter / filter / parser / processor / serializer etc...

BTW, dateparser is awesome lib! Thanks for bringing it!

rmk135 commented 8 years ago

I close this this ticket, but feel free to reopen it, if you have any other ideas / suggestions about it.