Skip to content

This rails plugin adds method to show custom time difference in hrs.mins format. Also adds an additional method for current financial week.

License

Notifications You must be signed in to change notification settings

gsohoni/MiscHelper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MiscHelper
==========

This helper plugin could be used for displaying time difference in hrs.mins format.
Also the plugin makes available a method which displays the current financial week.


Example
=======

some view file (index.html.erb):

<%= custom_distance_of_time(Time.now - 2.days, Time.now )%>
would display 48.00 hrs.


Current Financial Week : <%= current_financial_week %>
would display the current financial week number (year starts in April)



Copyright (c) 2010 [Gaurav Sohoni], released under the MIT license

About

This rails plugin adds method to show custom time difference in hrs.mins format. Also adds an additional method for current financial week.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages