asanghi-fiscali 1.1.5 → 1.1.6
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +31 -33
- data/VERSION +1 -1
- data/fiscali.gemspec +1 -1
- metadata +1 -1
data/README.markdown
CHANGED
@@ -71,88 +71,86 @@ Indian Fiscal Year starts from 1st of April
|
|
71
71
|
Assume Date.today is 1st May 2009
|
72
72
|
|
73
73
|
|
74
|
-
|
75
|
-
Returns the financial year of the date/time
|
74
|
+
##### financial_year -> Returns the financial year of the date/time
|
76
75
|
Date.today.financial_year
|
77
76
|
=> 2009
|
78
77
|
Date.today.beginning_of_year.financial_year
|
79
78
|
=> 2008
|
80
79
|
Since 1st Jan 2009 in India falls in the 2008-09 financial year
|
81
80
|
|
82
|
-
|
83
|
-
Returns the beginning of financial year
|
81
|
+
##### beginning_of_financial_year -> Returns the beginning of financial year
|
84
82
|
Date.today.beginning_of_financial_year
|
85
83
|
=> 1st April 2009
|
86
84
|
Date.today.beginning_of_year.beginning_of_financial_year
|
87
85
|
=> 1st April 2008
|
88
86
|
|
89
|
-
|
87
|
+
##### end_of_financial_year
|
90
88
|
|
91
|
-
|
92
|
-
|
89
|
+
##### beginning_of_financial_q1
|
90
|
+
##### end_of_financial_q1
|
93
91
|
|
94
|
-
|
95
|
-
|
92
|
+
##### beginning_of_financial_q2
|
93
|
+
##### end_of_financial_q2
|
96
94
|
|
97
|
-
|
98
|
-
|
95
|
+
##### beginning_of_financial_q3
|
96
|
+
##### end_of_financial_q3
|
99
97
|
|
100
|
-
|
101
|
-
|
98
|
+
##### beginning_of_financial_q4
|
99
|
+
##### end_of_financial_q4
|
102
100
|
|
103
|
-
|
104
|
-
|
101
|
+
##### beginning_of_financial_h1
|
102
|
+
##### end_of_financial_h1
|
105
103
|
|
106
|
-
|
107
|
-
|
104
|
+
##### beginning_of_financial_h2
|
105
|
+
##### end_of_financial_h2
|
108
106
|
|
109
|
-
|
110
|
-
|
107
|
+
##### financial_quarter -> Returns Q1, Q2, Q3, Q4 depending on where the date falls
|
108
|
+
|
111
109
|
Date.today.financial_quarter
|
112
110
|
=> Q1
|
113
111
|
Date.today.beginning_of_year.financial_quarter
|
114
112
|
=> Q4
|
115
113
|
|
116
|
-
|
117
|
-
|
114
|
+
##### financial_half -> Returns H1, H2 depending on where the date falls
|
115
|
+
|
118
116
|
Date.today.financial_half
|
119
117
|
=> H1
|
120
118
|
Date.today.beginning_of_year.financial_half
|
121
119
|
=> H2
|
122
120
|
|
123
|
-
|
124
|
-
|
121
|
+
##### next_financial_quarter -> Takes you to the beginning of the next financial quarter
|
122
|
+
|
125
123
|
Date.today.next_financial_quarter
|
126
124
|
=> 1st July 2009
|
127
125
|
|
128
|
-
|
129
|
-
|
126
|
+
##### next_financial_half -> Takes you to the beginning of the next financial half
|
127
|
+
|
130
128
|
Date.today.next_financial_half
|
131
129
|
=> 1st October 2009
|
132
130
|
|
133
|
-
|
134
|
-
|
131
|
+
##### beginning_of_financial_quarter -> Takes you to the beginning of the current financial quarter
|
132
|
+
|
135
133
|
Date.today.beginning_of_financial_quarter
|
136
134
|
=> 1st April 2009
|
137
135
|
Date.today.beginning_of_year.beginning_of_financial_quarter
|
138
136
|
=> 1st Jan 2009
|
139
137
|
|
140
|
-
|
141
|
-
|
138
|
+
##### beginning_of_financial_half -> Takes you to the beginning of the current financial half
|
139
|
+
|
142
140
|
Date.today.beginning_of_financial_half
|
143
141
|
=> 1st April 2009
|
144
142
|
Date.today.beginning_of_year.beginning_of_financial_quarter
|
145
143
|
=> 1st Oct 2008
|
146
144
|
|
147
|
-
|
148
|
-
|
145
|
+
##### previous_financial_quarter -> Takes you to the beginning of the previous financial quarter
|
146
|
+
|
149
147
|
Date.today.previous_financial_quarter
|
150
148
|
=> 1st Jan 2009
|
151
149
|
Date.today.beginning_of_year.previous_financial_quarter
|
152
150
|
=> 1st Oct 2008
|
153
151
|
|
154
|
-
|
155
|
-
|
152
|
+
##### previous_financial_half -> Takes you to the beginning of the previous financial half
|
153
|
+
|
156
154
|
Date.today.previous_financial_half
|
157
155
|
=> 1st Oct 2008
|
158
156
|
Date.today.beginning_of_year.previous_financial_quarter
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.6
|
data/fiscali.gemspec
CHANGED