xdate
xdate copied to clipboard
A Modern JavaScript Date Library
As you do not have the standard LICENSE.txt file nor the license key in package.json the automatic license checkers can not detect the license for your package. So would be...
New URL for the same post
I am not sure if it is in the scope of this library, but I wanted to mention it here since I had the issue today. We used XDate in...
Usually, when I am investigating new libraries, I test it using browser dev tools on their own websites. However, I was surprised that in the http://arshaw.com/xdate/ the XDate Class was...
Hi, I am tried this lines. `x.locales['tr'] = { monthNames: ['Ocak','Şubat','Mart','Nisan','Mayıs','Haziran','Temmuz','Ağustos','Eylül','Ekim','Kasım','Aralık'], monthNamesShort: ['Oca','Şub','Mar','Nis','May','Haz', 'Tem','Ağu','Eyl','Eki','Kas','Ara'], dayNames: ['Pazar','Pazartesi','Salı','Çarşamba','Perşembe','Cuma','Cumartesi'], dayNamesShort: ['Pz','Pt','Sa','Ça','Pe','Cu','Ct'], dayNamesMin: ['Pz','Pt','Sa','Ça','Pe','Cu','Ct'], weekHeader: 'Hf', firstDay: 2, };` But was not changed day...
Hi, does this library support i18n ? or any way to define i18n texts?
When parsing times 524070000000, it will get 'Aug 10 1986 23:00:00 GMT+0800 (中国标准时间)', Bug the crrect time shoud be 'Aug 11 1986 00:00:00 GMT+0800 (中国标准时间)', because the java return the...
When I set the weeknumber of a UTC-mode xdate, it reverts to my current time zone. > let date = new XDate(true); > date.setHours(0).setMinutes(0).setSeconds(0).setMilliseconds(0); > console.log(date); // {0: Thu, 08...
Eg : > new XDate('2011-05-22').diffMonths(new XDate('2016-02-26T14:06:00.000Z')) Response : 57.13991935483871 > new XDate('2011-05-22').addMonths(57.13991935483871) Response : h {0: Fri Feb 26 2016 08:06:00 GMT-0600 (CST)} The above example has a correct response...
When trying something like new XDate(2016,32,32), the object will return a valid date something like 1rst of Agust 2020