Hi all,I did not find a way to convert seconds to DateTime so I wrote something like this:
DateTime class extend [
fromSeconds: seconds [
| date time |
date := Date fromSeconds: seconds.
time := Time fromSeconds: (seconds - date asSeconds).
^ DateTime date: date time: time
]
]
Is there other way to do this?
Thanks,
Stefan
_______________________________________________
help-smalltalk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
