Added the code from opentype/pkg/date