Skip to content
/ Time.js Public

Time.Js is a versatile JavaScript Project that simplifies date and calendar related operation in a web project.

Notifications You must be signed in to change notification settings

ADJr01/Time.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Time.Js🕒

Time.Js is a versatile JavaScript Project that simplifies date and calendar related operation in a web application.

Core Functionalities:

Create an Instance:

const time = new Time();
const time1 = new Time(new Date());

Month Calendar Data: Retrieve detailed calendar data for a specific month.

const time = new Time();
const calendarInfo = time.monthInfo();

Full Year Calendar Data: Access comprehensive calendar data for an entire year.

const time = new Time();
const calendarInfo = time.yearlyInfo();

To Switch Month use setMonth function.It takes only one parameter month.Parameter can be passed as both number and string format.Example:

const time = new Time();
//january month calendar
time.setMonth('january');
const januaryCalendar = time.monthInfo();
//february month calendar
time.setMonth('feb');
const februaryCalendar = time.monthInfo();
//march month calendar
time.setMonth(2);
const marchCalendar = time.monthInfo();

To Switch Year use setYear function.It takes only one parameter year.Parameter can be passed as both only in number format.Example:

const time = new Time();
time.setYear(2022);
console.log(time.monthInfo());

About

Time.Js is a versatile JavaScript Project that simplifies date and calendar related operation in a web project.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published