Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Joe Early
    @JoeEarly
    Any thoughtsany one?
    Gajus Kuizinas
    @gajus
    Anyone have a clue whats the reason moment is chocking on this input?
    moment/moment#4276
    Zach Gawlik
    @ZachGawlik
    @gajus Interesting, I thought it was related to #4227 , but instead it seems like it only returns valid dates for ddd DD combinations that occurred this year. e.g. it works for Sunday Jan 01 / Sunday Jan 08. Not sure if that's by design or not.
    Eugene Serkin
    @jeserkin
    Hey everyone.
    Guys, can anyone explain or give material for reading. How does this Z fraction form on the end and what does it contain? Thank you.
    Dale Lotts
    @dalelotts
    Z is the timezone offset - read about ISO8601 time formats for more details
    Eugene Serkin
    @jeserkin
    Thank you.
    I do wonder though. Is it a correct behaviour. If I am formating date from period when daylight savings time was on, then should I get date with that taken into consideration or with current daylight savings off?
    Dale Lotts
    @dalelotts
    from https://en.wikipedia.org/wiki/ISO_8601
    If the time is in UTC, add a Z directly after the time without a space. Z is the zone designator for the zero UTC offset. "09:30 UTC" is therefore represented as "09:30Z" or "0930Z". "14:45:15 UTC" would be "14:45:15Z" or "144515Z".
    The date does not have daylight savings time if it ends is Z
    Eugene Serkin
    @jeserkin
    Okay. I see. Already reading about it. So it means, that if for example I have date '2017-03-28T21:47:53.832Z', then .832 is micro seconds? To my mistake I thought, that it is somehow connected to Z. But as I understand now, that Z in the end means, that time is in UTC and shift coresponding to specific timezone can be added.
    Dale Lotts
    @dalelotts
    from Wikipedia: A decimal mark, either a comma or a dot (without any preference as stated in resolution 10 of the 22nd General Conference CGPM in 2003,[23] but with a preference for a comma according to ISO 8601:2004)[24] is used as a separator between the time element and its fraction. To denote "14 hours, 30 and one half minutes", do not include a seconds figure. Represent it as "14:30,5", "1430,5", "14:30.5", or "1430.5". There is no limit on the number of decimal places for the decimal fraction. However, the number of decimal places needs to be agreed to by the communicating parties. For example, in Microsoft SQL Server, the precision of a decimal fraction is 3, i.e., "yyyy-mm-ddThh:mm:ss[.mmm]".
    so in your example it is 53.832 seconds after 21:47
    Eugene Serkin
    @jeserkin
    Great. Thank you.
    Matt Johnson-Pint
    @mattjohnsonpint
    @epyx25 - please don't ask us for help with performing activities that are in violation of that site's terms of service.
    Daniel Groh
    @dgroh
    Hello everyone, is it possible to convert MMMM YYYY to a date? for example: March 2017 to 03-01-2017 ?
    Dmitry
    @nostalgie
    const str = "March 2017";
    const formated = moment("01 " + str).format('MM-DD-YYYY');
    :D ?
    Daniel Groh
    @dgroh
    @nostalgie haha nice, didn't thpught that easy. actually I thought something more out of the box, but ok, good tho, thanks
    Daniel Groh
    @dgroh
    how can I do this with the right locale tho?
    Matt Johnson-Pint
    @mattjohnsonpint
    @dgroh - just use moment("March 2017", "MMMM YYYY").format("MM-DD-YYYY"). The current locale will be used.
    Fong Fan
    @voltaaage
    Hi friends, I'm interested in contributing to moment as my first open source project. I am investigating this ticket: moment/moment#4301
    What are the guidelines for taking/assigning github issues?
    Alexandre Faustino
    @alexdabast
    @voltaaage maybe take a look at the contributing.md file https://github.com/moment/moment/blob/develop/CONTRIBUTING.md
    Personnaly I want to add a new locale to moment :)
    Fong Fan
    @voltaaage
    It doesn't look like I have any ability to modify the github issues so I'll assume commenting on the issue should be sufficient for claiming it.

    I'm investigating how the code around matchers work and I would like to be able to throw debuggers in to step through it. Could anyone share their development environment setup?

    My setup right now consists of a react app (using create-react-app) that includes the package. I used npm link to point to the package on my local machine which appears to work when I open up node modules. However, my code changes do not appear - I suspect it is because it's referencing the minified version.

    The docs state that grunt release will build the minified version of the package. However, it also requires the tests to pass before it will run.

    Fong Fan
    @voltaaage
    @icambron ^
    Joe Early
    @JoeEarly
    Anyone alive lol
    David Reghay
    @davidreghay
    Still breathing yeah
    Joe Early
    @JoeEarly
    I sloved my last problem but now i have a new one
    blob
    Changes my searchDate to Jan 18 for some reason
    mairan
    @mairanteodoro
    Hi, all! What's being used for testing moment.js?
    I know it was Jasmine a while ago...
    Tomáš Krmela
    @netmoleCZ
    hello there i have question i have gatesbyjs project and i am call moment with this moment(new Date(date)).locale("cs").format("YYYY-MM-DD") when i am try it on local instance all is right displayed when i am deploy it out it use english locale
    Hua Lu
    @hualu00
    Hello all, how can i tell some date is valid or not under certain locale with momentjs?
    Jon New
    @newtang
    Is there a way to detect if a given timezone is valid with moment? I see it logs an error when it doesn't recognize, but is there anything I can use programmatically?
    Paul
    @ShahrukhKumar
    @ShahrukhKumar
    I am getting the time in seconds as a response from the server. How can I convert it to the format of YYYY-MM-DD using momentjs?
    in the frontend
    John Woodruff
    @johnbwoodruff
    Is there a way to nicely attempt to parse a string into a date? Essentially I’m writing a way to infer a schema on a CSV, (in other words, I don’t know my data before I get it, so I can’t simply assume a format) so I attempt to parse the string value into a date. I thought I could use moment(‘some string’).isValid() but that still throws a deprecation warning stack trace. Is there some way/function I could use to simply test if a string is parseable to a date with moment?
    Menencia
    @Menencia
    Hi, what happened to Duration Format Plugin, Uncaught TypeError: moment.duration(...).format is not a function at <anonymous>:1:33 ? (v2.2.1)
    Joe Early
    @JoeEarly
    var backDteValue = moment().day() - 1;
     var lastSaturday = moment().day(- backDteValue);
     lastSaturday = moment(lastSaturday).format("MMMM Mo");
    Anything wrong with my format code? Before it take affect, the date is 10th Feb, after formatting its 2nd feb?
    Joe Early
    @JoeEarly
    sorted it
    Stewart Rand
    @stewx
    Something seems to be wrong with the Typescript typing for moment
    Specifically, moment.localeData() is supposed to return a Locale, according to moment.d.ts
    however, there is a problem with the Locale definition, since none of its properties are prefixed with "_", which is how they really are, due to set() in moment.js
    I'm going to submit a PR for it, unless someone disagrees
    I'm basically going to be prefixing the properties of the Locale definition with an underscore, "_"