SwiftMoment
SwiftMoment copied to clipboard
A time and calendar manipulation library for iOS 9+, macOS 10.11+, tvOS 9+, watchOS 2+ written in Swift 4.
There's a bug when getting EndOf a year ## Detailed Description ```swift let now = moment() let endYear = now.subtract(1, .Years).endOf(.Years) // 2016-12-30 23:59:59 ``` expected result is `2016-12-31 23:59:59`
## Detailed Description Using `fromNow()` did not return the localized version for "%d days ago" and others. The string format used in `fromNow()` is `%%1.0f %@days ago`, but in the...
A bug in endof month (especially February 2017)? ``` print("endof m", moment().endOf(TimeUnit.Months).date.toDateTime()) print("start of next -1", moment().add(1, TimeUnit.Months).startOf(TimeUnit.Months).subtract(1, "d").date.toDateTime()) ``` The results are 3/2/17, 11:59 PM _and_ 2/28/17, 12:00 AM...
Problem with parsing time format - "h:mm:ss A", - "h:mm A", ## Detailed Description According to Apple's ISO descriptions, `A` represents microseconds, as opposed to `AM/PM`. Those formats should be...
Hello, I'm using your library to display the time between the last modification date of a file and the current date. It works very well but it seems French strings...
@twairball pointed out that 2 letter Language abbreviations won't work with other languages like zh-Hant_US? We should look at a better way to solve this problem. I also don't know...
If your Region is Canada, the system should use the base en strings because en_CA is not provided. Instead, we see empty strings.
When trying to add months to an instance of Moment I get an unexpected value. I would expect the following example to return an instance of Moment representing the 1st...