Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- |--story [1]-|
- ---[a]------------[b]----[c]---------[d]---[e]-
- jan feb mar apr may jun jul aug sep oct nov dec
- -----------------------------------------------
- ---[2]------| |--[2]-
- Cases:
- [a] ends_at > today,
- ends_at < starts_at
- [b]
- [c] starts_at < today,
- ends_at > today,
- starts_at < ends_at
- [d]
- [e] starts_at < today
- starts_at > ends_at
Add Comment
Please, Sign In to add comment