daily pastebin goal
51%
SHARE
TWEET

Untitled

a guest May 17th, 2018 109 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Input
  2. |start|end|
  3. |2017-06-01 09:30:00|2017-06-01 11:30:00|
  4. |2017-06-01 14:00:00|2017-06-01 14:30:00|
  5.  
  6. // Result
  7. |start|end|hours_active|
  8. |2017-06-01 09:30:00|2017-06-01 11:30:00|(9,10,11)|
  9. |2017-06-01 14:00:00|2017-06-01 14:30:00|(14)|
RAW Paste Data
Top