Coder Social home page Coder Social logo

Comments (3)

icepuma avatar icepuma commented on August 29, 2024 1

Break violations also work:

Ryan Rolfer - 1day 8h

2022-05-23 - 11:00 - 20:00 | Work: 8h, Break: 1h
2022-05-24 - 11:00 - 20:00 | Work: 8h, Break: 1h
2022-05-25 - 11:00 - 20:00 | Work: 8h, Break: 1h
2022-05-27 - 11:00 - 20:00 | Work: 8h, Break: 1h

Lars R. Bender - 1day 8h

2022-05-23 - 08:00 - 16:30 | Work: 8h, Break: 30m
2022-05-24 - 08:00 - 16:30 | Work: 8h, Break: 30m
2022-05-25 - 08:00 - 16:30 | Work: 8h, Break: 30m
2022-05-27 - 08:00 - 16:30 | Work: 8h, Break: 30m

John Morano - 1day 16h

2022-05-23 - 08:00 - 16:00 | Work: 8h, Break: 0s | Worked for 8h => break should be at least 30 minutes!
2022-05-24 - 08:00 - 16:00 | Work: 8h, Break: 0s | Worked for 8h => break should be at least 30 minutes!
2022-05-25 - 08:00 - 16:00 | Work: 8h, Break: 0s | Worked for 8h => break should be at least 30 minutes!
2022-05-26 - 08:00 - 16:00 | Work: 8h, Break: 0s | Worked for 8h => break should be at least 30 minutes!
2022-05-27 - 08:00 - 16:00 | Work: 8h, Break: 0s | Worked for 8h => break should be at least 30 minutes!

from fbtoggl.

icepuma avatar icepuma commented on August 29, 2024

I implemented the following command:

fbtoggl reports detailed --range (range: 'today', 'yesterday', 'this-week', 'last-week', 'this-month', 'last-month', ISO 8601 date '2021-11-01'), ISO 8601 date range '2021-11-01|2021-11-02')

This will do:

  • list all user with their respective dates, where they worked
  • each date shows the start, end and amount of hours
  • each date shows violations when
    • the start is before 6 am
    • the end is after 10 pm
    • the amount of hours is larger than or equal to 10 hours

Some things that are missing, but will come later this week:

  • Show a lunch break violation depending on the hours worked on that particular date
  • Output formats <json, csv, plain>

Example:

Range: 2022-05-23 - 2022-05-29

Ryan Rolfer

2022-05-23 - 08:00 - 17:00 | 8 hours
2022-05-24 - 08:00 - 17:00 | 8 hours
2022-05-25 - 08:00 - 17:00 | 8 hours
2022-05-27 - 08:00 - 17:00 | 8 hours

Lars R. Bender

2022-05-23 - 06:00 - 15:00 | 8 hours
2022-05-24 - 06:00 - 15:00 | 8 hours
2022-05-25 - 06:00 - 15:00 | 8 hours
2022-05-27 - 06:00 - 15:00 | 8 hours

John Morano

2022-05-23 - 08:00 - 16:00 | 8 hours
2022-05-24 - 08:00 - 16:00 | 8 hours
2022-05-25 - 08:00 - 16:00 | 8 hours
2022-05-26 - 08:00 - 16:00 | 8 hours
2022-05-27 - 08:00 - 16:00 | 8 hours

from fbtoggl.

icepuma avatar icepuma commented on August 29, 2024

The output format will maybe change in the future, but remains for now.

from fbtoggl.

Related Issues (6)

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.