Archive for November 11th, 2023|Daily archive page

GitHub Authentication

  • Username & Password (risky)
  • Personal Access Tokens
  • SSH Keys
  • Deploy Keys

Added Security Options

  • Two Factor Authentication (MFA)
  • SAML SSO
    • Active Directory Federation Services (ADFS)
    • Microsoft Entra ID
    • Okta
    • OneLogin
    • PingOne
    • Others…
  • LDAP
    • Active Directory
    • Oracle Directory Server Enterprise Edition
    • OpenLDAP
    • Open Directory
    • Others…

JavaScript Dates

new Date() is a JavaScript object containing a number that represents milliseconds since 1/1/1970 UTC. Also defined as the number of milliseconds that have elapsed since the ECMAScript epoch (equivalent to the UNIX epoch) of 1/1/1970.

Interesting Note:

A number in ECMAScript can represent all integers from -9,007,199,254,740,992 to 9,007,199,254,740,992. The time value is something less than that: -8,640,000,000,000,000 to 8,640,000,000,000,000 milliseconds. This works out to approximately -273,790 to 273,790 years relative to 1970. (Reference 21.4.1.1 ECMAScript).

MDN Reference

Keep in mind: the month is zero based. All others are 1 based. Example:

let date = new Date(2022,3,29,14,1,30,50);

The integer “3” for the month parameter is not March, but April.

Getters return the time zone of the machine the code is running on. There is the UTC version of the date getters.