Class: Time

Inherits:
Object show all
Defined in:
lib/qualitysmith_extensions/time/deprecated.rb

Overview

Author

Tyler Rick

Copyright

Copyright © 2007 QualitySmith, Inc.

License

Ruby License

Submit to Facets?

No!

++

Instance Method Summary collapse

Instance Method Details

#datetime_for_report(line_break = false) ⇒ Object

This should be moved elsewhere because it is subjective and depends on the context where it’s used.



10
11
12
13
# File 'lib/qualitysmith_extensions/time/deprecated.rb', line 10

def datetime_for_report(line_break = false)
  optional_line_break = (line_break ? "<br/>\n" : "")
  strftime("%I:%M %p #{optional_line_break} %B %d, %Y")   # Example: "June 18, 2006"
end