0.0.6 • Published 19 days ago

timedated v0.0.6

Weekly downloads
-
License
ISC
Repository
-
Last release
19 days ago

TimeDated

A JavaScript Time Module.

v0.0.6

In this all-new nightly build, we've added a timezone category that we will be building on in the next few days. Get current timezone, convert to military time, and an improved getWeekDay function awaits when you upgrade to v0.0.6!

API Features - v0.0.6

  • Is the given year a leap year?
  • Gets current week day.
  • Is it the given day of the week?
  • Get Time w/ Date/Sec
  • Convert to Military Time
  • Get Month
  • Get Year
  • Get Day
  • Get Date
  • Timezones

API Testing - v0.0.6

  • isLeapYear(year). PASSED
  • getWeekDay(cap). PASSED
  • isWeekDay(day). PASSED
  • getTime(date, sec). PASSED
  • convertMilitaryTime(time). PASSED
  • getDate(). PASSED
  • getDay(). PASSED
  • getMonth(). PASSED
  • getYear(). PASSED

Changes - v0.0.6

  • Adds timezone branch of timedated and timezone.current function.
  • Adds convertMilitaryTime function for converting time to military time.
  • Improved method of getting week day for the getWeekDay function.

How to Use?

timedated.isWeekDay(year). Year is a number or string that you want to see if it is a leap year. Ex: 2024 or "2024".\ timedated.getWeekDay(cap). Cap may have one of many values. Leaving it blank, passing in 'none', 0, or "0", will return the week day in no caps. 'first', 1, or "1", will capitalize the first letter. 'all', 2, or "2", will capitalize all of the letters.\ timedated.isWeekDay(day). Is is the day of the week. 0-6 are the days of the week starting from Sunday and ending at Saturday. You may put the number in a string or just list the entire day. Ex: timedated.isWeekDay('sunday').\ timedated.getTime(date, sec). Date and Sec may be either 'true', true, 'false', or false. If no date or sec is provided, they will both default to false. Date determines whether you want to see the date in what it returns. Sec determines whether you want to see the seconds in what it returns.\ timedated.convertMilitaryTime(time). Time is the time you want to be converted to military time. Ex: 6:32 PM. You may also have seconds in the time variable. Ex: 6:32:46 PM.\ timedated.getDate(). Returns just the date. Ex: 3/1/2023.\ timedated.getDay(). Returns just today. Ex: 1 in 3/1/2023.\ timedated.getMonth(). Returns just the month. Ex: 3 in 3/1/2023.\ timedated.getYear(). Returns just the year. Ex: 2023 in 3/1/2023.\ timedated.timezone.current(). Returns your current timezone.

Size Change: 27.7 MB => 4.39 KB v0.0.5

Early Access Project.

DELAYED. We were unable to publish v0.0.6 yesterday as we needed a bit more time to release this new version. Sadly, v0.0.7 will not be able to be released until Monday. See you then!

0.0.5-republish

19 days ago

0.0.5

21 days ago

0.0.4

21 days ago

0.0.6

19 days ago

0.0.3

3 months ago

0.0.3-beta

3 months ago

0.0.1-beta

1 year ago