Summary: | Add function to calculate the day in year from a date | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Patrick R. Gansterer <paroga> | ||||
Component: | Web Template Framework | Assignee: | Patrick R. Gansterer <paroga> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | ||||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | All | ||||||
OS: | All | ||||||
Attachments: |
|
Description
Patrick R. Gansterer
2012-07-30 13:20:03 PDT
Created attachment 155349 [details]
Patch
Comment on attachment 155349 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=155349&action=review > Source/WTF/ChangeLog:9 > + dayInYear() makes existing firstDayOfMonth data > + accessible from other files than DateMath too. Please mention that this change helps fixing the bug 92286. > Source/WTF/wtf/DateMath.cpp:289 > -static inline int monthToDayInYear(int month, bool isLeapYear) > +int dayInYear(int year, int month, int day) Let's keep this function static local for now since it's not used elsewhere at the moment. Committed r124095: <http://trac.webkit.org/changeset/124095> |