use sturges() in hist2d
make strftime and strptime use TmStruct instead of a number, which fixes #2986
plus documentation