adjustments to scale definition, dateutils implementation