Git Product home page Git Product logo

Comments (5)

dfsklar avatar dfsklar commented on June 14, 2024

Similarly: full-day events are not counted and that's a problem for me. I sometimes need to consider a full-day event as counting for 8 hours. It would be nice to provide a UI allowing the user to select one of two ways to handle full-day events:

  1. Ignore
  2. Consider each full-day event to be ______ hour(s)

from google-calendar-hours.

dereknheiley avatar dereknheiley commented on June 14, 2024

the problem is, there are multiple ways to solve this problem

a) count all event time in the day the event started
b) count all event time in the day the event ended
c) divide event time into portions so that time until 12am is recorded on day i, and time after 12am is recorded on day i+1

Each has their own merit for certain users
a) might be what most night owls would expect, but if you started work at 11:30pm and ended at 4am b) would make more logical sense
c) would be the most accurate depiction of what actually happened, especially if you had an event starting at 6pm on one day, and ended at 10am two days later, similar to defining a week start and end day, you could potentially allow users to specify roll over time of 3am or something.

c) is also the most challenging to implement since you theoreticaly have to handle cases where an event started in the distant past, and keeps going into the distant future. i'm not sure how the google api's allow for capturing time from such an event, if at all

the simplest solution might be allowing users to specify their own day end time and not worry about edge cases like multi-day events for now

from google-calendar-hours.

voarsh avatar voarsh commented on June 14, 2024

This needs to be sorted! Not sure if this project is dead. Someone needs to fork it and FIX this issue.

from google-calendar-hours.

vickesh avatar vickesh commented on June 14, 2024

would like to see dfsklar suggestion implemented

from google-calendar-hours.

aronwoost avatar aronwoost commented on June 14, 2024

Overnight events has been fixed with #138.

Note that full-day events are still not counted. This is by design.

from google-calendar-hours.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.