add support for outputting time in yaml formatters

It would be useful if yaml output supported printing time as a string