Andrew Plummer

Results 217 comments of Andrew Plummer
trafficstars

Ok it's been a while to respond to this, but I'm circling back around to it. Bottom line, I can see a use case for this. The only way I...

It actually does now! Have a look at the [docs](https://sugarjs.com/docs/#/Date/create) for the `params` option. If you pass an object here, it will be populated with various parsed attributes, one of...

I'll leave this open as a reminder to improve the docs for this one. Thanks!

Yes! You can use [daysSince](https://sugarjs.com/docs/#/Date/unitsSince).

Ah apologies, I see you were trying to add the unit itself. Well, the answer to your question is [add](https://sugarjs.com/docs/#/Date/addUnits) with a negation, so `to.addDays(-3)`. However, the more I think...

Please have a look [here](https://sugarjs.com/docs/#/DateParsing). LDML tokens are intended for formatting, and are not the same as tokens for parsing. Out of curiosity, can you tell me where the format...

Let's leave this one open because I can always clean up the docs more, but also maybe it would be worth it to bring the parsing tokens more toward LDML...

> if you mean you want to add {Mon} as a token I would, I think that's a good idea. > but if you mean you want to add that...

One idea to handle enhancements is to have an `enhance` method on both the `Sugar` global and namespaces like `Sugar.Array`. This could accept a `prefix` option that would allow enhanced...

This leads into #529. The declarations are still in flux. If you only require the date module then for now can you try using the `sugar-date` module instead?