Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #3607 (closed enhancement: fixed)

Opened 3 years ago

Last modified 3 years ago

[PATCH] Time extension beginning_of_quarter

Reported by: cohen.jeff@gmail.com Assigned to: David
Priority: normal Milestone:
Component: ActiveSupport Version: 1.0.0
Severity: normal Keywords:
Cc:

Description

Helper for finding the first day of a quarter. E.g. 1/1 for first quarter, 4/1 for second quarter...

If today is June 8, you can do Time.now.beginning_of_quarter => April 1.

Attachments

beginning_of_quarter.diff (1.9 kB) - added by cohen.jeff@gmail.com on 01/25/06 21:48:11.

Change History

01/25/06 21:48:11 changed by cohen.jeff@gmail.com

  • attachment beginning_of_quarter.diff added.

02/26/06 00:46:19 changed by david

  • status changed from new to closed.
  • resolution set to fixed.

(In [3659]) Added Time#beginning_of_quarter (closes #3607) [cohen.jeff@gmail.com]