2.3.3 • Published 7 years ago

sto-sis-time-parser v2.3.3

Weekly downloads
6
License
MIT
Repository
github
Last release
7 years ago

stolaf-sis-timestring-parser

Build Status

A parser to take the wierd timestrings from St. Olaf's SIS and turn them into a semi-usable format.

Example:

// input
course = {times: ['MT 0100-0400PM', 'MF 0905-1000']}

convertTimeStringsToOfferings(course, {groupBy: 'day'})

// output
[
	{ day: 'Mo', times: [{ start: 1300, end: 1600 }, { start: 905, end: 1000 }] },
	{ day: 'Tu', times: [{ start: 1300, end: 1600 }] },
	{ day: 'Fr', times: [{ start: 905,  end: 1000 }] },
]

You can also request that the offerings be grouped like SIS does:

// input
course = {times: ['MT 0100-0400PM', 'MF 0905-1000']}

convertTimeStringsToOfferings(course, {groupBy: 'sis'})

// output
[
    { days: ['Mo', 'Tu'], times: [{start: 1300, end: 1600}] },
    { days: ['Mo', 'Fr'], times: [{start: 905,  end: 1000}] },
]
2.3.3

7 years ago

2.3.2

7 years ago

2.3.1

7 years ago

2.3.0

7 years ago

2.2.13

7 years ago

2.2.12

7 years ago

2.2.11

9 years ago

2.2.10

9 years ago

2.2.9

9 years ago

2.2.8

9 years ago

2.2.7

9 years ago

2.2.6

9 years ago

2.2.5

10 years ago

2.2.4

10 years ago

2.2.3

10 years ago

2.2.2

10 years ago

2.2.1

10 years ago

2.2.0

10 years ago

2.1.0

10 years ago

2.0.2

10 years ago

2.0.1

10 years ago

2.0.0

10 years ago

1.0.9

10 years ago

1.0.8

11 years ago

1.0.7

11 years ago

1.0.6

11 years ago

1.0.5

11 years ago

1.0.4

11 years ago

1.0.3

11 years ago

1.0.1

11 years ago

1.0.0

11 years ago