Decorated Time plugin

Plugin details

Decorates the Time class with some meaningfully named methods for getting the weekday and month names, so you don't have to remember the strftime format strings.

Websitehttp://svn.laurelfan.com/decorated_time Author Laurel Fan Tags Time, format LicenseUnknown

Documentation

This plugin decorates the time class with six new methods: short_weekday_name, abbreviated_weekday_name (like “Sun”), full_weekday_name (like “Sunday”),
short_month_name, abbreviated_month_name (like “Jan”), and full_month_name (like “January”).

examples

@apr_28_2001 = Time.local(2001, 4, 28, 10, 07, 03)

@apr_28_2001.short_weekday_name        
@apr_28_2001.abbreviated_weekday_name        
@apr_28_2001.full_weekday_name        
@apr_28_2001.short_month_name        
@apr_28_2001.abbreviated_month_name        
@apr_28_2001.full_month_name        

Further Documentation

There is currently no advanced documentation for this plugin.

New documentation

Edit plugin | Back in time (1 older version) | Last edited by: scott, 15 days ago