Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Seconds in year constants #298

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions DateTools/DateTools/DTConstants.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
#import <Foundation/Foundation.h>

FOUNDATION_EXPORT const long long SECONDS_IN_YEAR;
FOUNDATION_EXPORT const long long SECONDS_IN_COMMON_YEAR;
FOUNDATION_EXPORT const long long SECONDS_IN_JULIAN_YEAR;
FOUNDATION_EXPORT const long long SECONDS_IN_LEAP_YEAR;
FOUNDATION_EXPORT const NSInteger SECONDS_IN_MONTH_28;
FOUNDATION_EXPORT const NSInteger SECONDS_IN_MONTH_29;
FOUNDATION_EXPORT const NSInteger SECONDS_IN_MONTH_30;
Expand Down
5 changes: 4 additions & 1 deletion DateTools/DateTools/DTConstants.m
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

#import "DTConstants.h"
const long long SECONDS_IN_YEAR = 31556900;
const long long SECONDS_IN_YEAR = 31556952;
const long long SECONDS_IN_COMMON_YEAR = 31536000;
const long long SECONDS_IN_JULIAN_YEAR = 31557600;
const long long SECONDS_IN_LEAP_YEAR = 31622400;
const NSInteger SECONDS_IN_MONTH_28 = 2419200;
const NSInteger SECONDS_IN_MONTH_29 = 2505600;
const NSInteger SECONDS_IN_MONTH_30 = 2592000;
Expand Down