GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - robz/TimeDiff: find time intersections between different schedules

BranchesTags
Open more actions menu

Latest commit

 

History

4 Commits
4 Commits

Folders and files

NameName
Last commit message
Last commit date
README
README
 
 
TimeDiff.java
TimeDiff.java
 
 
teamtimes
teamtimes
 
 

Repository files navigation

This is a project that can diff several different week-long schedules to find the intersection. It outputs the results in a 7 by 24 (7 days by 24 hours) matrix. 

For example, the file 'teamtimes' in this directory contains 5 week-long schedules. One of those schedules looks like this:

Mon. 6:00 - 9:00 PM, Tues. 6:00 - 9:00 PM, Wed. 6:00 - 9:00 PM, Thurs. 6:00 - 9:00 PM, Fri. 3:00 - 6:00 PM, Fri. 6:00 - 9:00 PM, Sat. 12 Noon - 3:00 PM, Sat. 3:00 - 6:00 PM, Sun. 3:00 - 6:00 PM

Several of these schedules can be listed out, each separated by a newline character, and provided as input to the program. The program is written in java. This is what the command line should look like if the 'teamtimes' file is used:

$ javac TimeDiff.java
$ java TimeDiff teamtimes
Intersection of hours available:
(first column is 1 AM, last is midnight)
	123456789012345678901234
Mon:	000000000000000000000000
Tues:	000000000000000000000000
Wed:	000000000000000000000000
Thurs:	000000000000000000000000
Fri:	000000000000000000000000
Sat:	000000000000000001000000
Sun:	000000000000001111000000

The matrix is made up of zeros and ones where one means the corresponding hour block is described in each schedule of the list, and zero means there is some schedule in the list that does not have that hour described. The input file must exactly adhere to the syntax in the 'teamtimes' example file. Any number of schedules may be listed.

About

find time intersections between different schedules

Resources

Readme
Activity

Stars

3 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.