[Opendnssec-develop] libxml2 xsd:durations

sion at nominet.org.uk sion at nominet.org.uk
Wed Apr 15 08:57:22 UTC 2009

> Before I write a function to do it myself, does anyone know how to
> deal with xsd:durations in C (convert them to seconds). I hoped that
> libxml2 would do it for me but I can not find the function :)

So there is some code in "enforcer/libksm/src/datetime.c" which takes
things like "2w" and converts it into 2 weeks worth of seconds.

I can modify this to cope with xsd:durations in a simplified manner (30
days in a month, 365 days in a year?)

Would that be okay for version 1?


More information about the Opendnssec-develop mailing list