npm

ucsd-quarters-years
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

Quarter And Year Information at UCSD

This repo contains types and easy to import information for all the academic quarters and years at UCSD.

Installation

npm install ucsd-quarters-years
# or
yarn add ucsd-quarters-years

Usage

import { getCurrentQuarter, getQuarter, quarters, years } from 'ucsd-quarters-years';

console.log(quarters.FA20);
// {
//   code: 'FA20',
//   name: 'Fall Quarter 2020',
//   start: '2020-09-28T00:00:00.000-07:00',
//   end: '2020-12-19T00:00:00.000-08:00'
// }

console.log(years['2020-2021']);
// {
//   name: '2020-2021',
//   start: '2020-09-28T00:00:00.000-07:00',
//   end: '2021-06-11T00:00:00.000-07:00'
// }

console.log(getQuarter('FA20'));
// Same as first call

console.log(getCurrentQuarter());
// Will return the current quarter, depending on the current time.

Readme

Keywords

none

Package Sidebar

Install

npm i ucsd-quarters-years

Weekly Downloads

1

Version

1.1.0

License

MIT

Unpacked Size

40.3 kB

Total Files

21

Last publish

Collaborators

  • acmucsd_dev