Changeset View
Changeset View
Standalone View
Standalone View
src/icalformat_p.cpp
Context not available. | |||||
2644 | int seconds = d.hours * gSecondsPerHour; | 2644 | int seconds = d.hours * gSecondsPerHour; | ||
---|---|---|---|---|---|
2645 | seconds += d.minutes * gSecondsPerMinute; | 2645 | seconds += d.minutes * gSecondsPerMinute; | ||
2646 | seconds += d.seconds; | 2646 | seconds += d.seconds; | ||
2647 | if (seconds) { | 2647 | if (seconds || !days) { // Create second-type duration for 0 delay durations. | ||
2648 | seconds += days * gSecondsPerDay; | 2648 | seconds += days * gSecondsPerDay; | ||
2649 | if (d.is_neg) { | 2649 | if (d.is_neg) { | ||
2650 | seconds = -seconds; | 2650 | seconds = -seconds; | ||
Context not available. |