dmacvicar / ruby-sfcc

ruby bindings for sblim client
MIT License
6 stars 6 forks source link

This updates fixes various value conversions to/from CIMC_* to Ruby #6

Closed kkaempf closed 12 years ago

kkaempf commented 12 years ago
dmacvicar commented 12 years ago

Any special reason to use ruby's Time instead of DateTime?

kkaempf commented 12 years ago

No, except that Time is built-in and DateTime needs a require (afaik). Also DateTime doesn't provide additional semantics beyond what CMPIDateTime has. The actual limitation I ran into are in sfcb which relies on glibc time_t functions which cannot represent dates before the epoch. CMPIDateTime and Ruby Time can handle dates before the epoch.