Comments (5)
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:
- Ignore
- Consider each full-day event to be ______ hour(s)
from google-calendar-hours.
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.
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.
would like to see dfsklar suggestion implemented
from google-calendar-hours.
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)
- Can't select Dates HOT 11
- Timezone issue HOT 7
- Overly precise hour counts (to over a dozen decimal places) HOT 4
- only the first 83 of the total 90 events are shown HOT 8
- Unable to sum duration all calendars combined HOT 3
- Will not calculate past 365 days from current date HOT 3
- Issue : Calculating hours for events marked as free !? HOT 6
- Filter on event name HOT 2
- Idea: Fetch events more frequently HOT 1
- IDEA: Summarize hours based on hashtags HOT 2
- Feature request: count number of events / select multiple calendars HOT 2
- Feature request: Need select all calendars once HOT 2
- Make it an app for Android HOT 1
- not counting "whole day event"
- npm start crash HOT 1
- Ability to sort by event name HOT 1
- Date formatting not compatible with google sheets HOT 2
- Make a Chrome extension out of this? HOT 3
- Broken? HOT 7
- Make percentage converter HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from google-calendar-hours.