On 18.03.2009, at 23:41, dan.sosedov wrote:
> Only what i really need - how can i use or convert-on-fly that > timestamp to DateTime class ? > > Any suggestions ? This is what custom DM types are for. Check out dm-types and specifically EpochTime type, then use it like this: property :date_created, ::DataMapper::Types::EpochTime note that when you assign a value to EpochType property, it stores it as a timestamp, but you would need only one way conversion, it is possible with DM types as well MK --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "DataMapper" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/datamapper?hl=en -~----------~----~----~----~------~----~------~--~---
