buggins / hibernated

HibernateD is ORM for D language (similar to Hibernate)
82 stars 31 forks source link

Add support for SysTime type #56

Closed muffledSheep closed 5 years ago

muffledSheep commented 6 years ago

It would nice if there was support for std.datetime.systime.SysTime. Thanks.

bausshf commented 6 years ago

It doesn't make much sense to use SysTime, but rather DateTime should be used.

SysTime is meant to represent a given time from the system ex. Clock.currTime() where as DateTime is meant to represent a user-specified time.

Could you give a scenario in which you it's preferred to use SysTime over DateTime?

muffledSheep commented 6 years ago

I'm glad to see this repo getting some attention after a while. I use SysTime for internationalisation - DateTime has no concept of timezones as far as I know.

SingingBush commented 5 years ago

ddbc is where this kind of work is done. See related: https://github.com/buggins/ddbc/issues/62