time: Simplify using OpenStruct

cc @tomjmcdaniel