module Qrda module Export module Helper module DateHelper def value_or_null_flavor(time) # this is a bit of a hack for a defineded undefined date if time && DateTime.parse(time).year < 3000 "value='#{DateTime.parse(time).utc.to_formatted_s(:number)}'" else "nullFlavor='UNK'" end end def performance_period_start @performance_period_start.to_formatted_s(:number) end def performance_period_end @performance_period_end.to_formatted_s(:number) end def author_time "