Andrew Plummer

Results 217 comments of Andrew Plummer

Cool. That's a good use case, I was just curious about it. So, `unit` does not have to do with the relative date, and is an internal parameter that should...

@dusty Sorry yes this issue has taken forever but it's finally being addressed. The bug that you're dealing with has been fixed and I will take a look at `relativeIndex`...

As the docs mention, `newDateInternal` is providing access to Sugar's internal date constructor (by default is simply `new Date`, this overrides it). When you use `create` to parse a string...

You're right about the docs, and admittedly this feature is nearly "hidden" in nature, and could be better thought out. It essentially began existence to allow Sugar to play nicely...

So, any ambiguity in the interpretation of dates (including 2 year dates, units without a specific larger unit set, such as just "Wednesday", etc) are handled with the `past` and...

Maybe you could tell me what you're trying to do and how you would interpret a 2 digit year?

OK this seems reasonable. First, since I managed to dig it up, please note that Sugar follows [RFC 2882](https://www.ietf.org/rfc/rfc2822.txt) here: Where a two or three digit year occurs in a...

Really sorry about how long this has taken... probably not going to help you anymore but hopefully it will help someone....

I think the way you're approaching it is correct, however the specificity thing seems to be a bug. If I can fix the bug, then I think it should work...

Ah but that's correct. 4 is actually hours (units count up from milliseconds starting at 0... Planning to improve this in the next version). So I think what's happening is...