Wrote some fun stuff in javascript today :blobok:
Learned that javascript counts days starting from 1 and months starting from 0...!? :blobfearful:
June = 5 !??!??!? :blobdizzy:
Wrote some fun stuff in javascript today :blobok:
Learned that javascript counts days starting from 1 and months starting from 0...!? :blobfearful:
June = 5 !??!??!? :blobdizzy:
@Zichqec I think such mysterious behavior may be derived from localtime/gmtime of C language.
https://learn.microsoft.com/en-us/cpp/c-runtime-library/reference/localtime-localtime32-localtime64
@ponapalt Looking at this table... it brings me great pain 🥲
I am glad to work primarily in YAYA, where the only part of this behavior that carries over is the weekday starting from 0... but this is excuseable because different countries disagree on which is the first weekday
076萌SNS is a social network, courtesy of 076. It runs on GNU social, version 2.0.2-beta0, available under the GNU Affero General Public License.
All 076萌SNS content and data are available under the Creative Commons Attribution 3.0 license.