[Opendnssec-develop] libxml2 xsd:durations

Jelte Jansen jelte at NLnetLabs.nl
Wed Apr 15 08:59:35 UTC 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

sion at nominet.org.uk wrote:
>> 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?
> 

well that's what my python thing is doing at the moment too; as long as we
document it I don't really mind. But is is something that should go on the todo
list.

Jelte
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAknlofcACgkQ4nZCKsdOncVvJwCfYBcA0IWve/WtiYc73cwvn0sm
nB4An3Dw0bD3bbPxVUNdtcB5DVAPvhPK
=ou1Q
-----END PGP SIGNATURE-----



More information about the Opendnssec-develop mailing list