Format all calendar and time data reader-friendly
Date Formatter
Reference
Material philosophy https://material.io/design/communication/data-formats.html
Task
dateFormater
Service
Functional
- User can set time margin to a specific translation
- Readable translation of time for dev & user
- developer
- from :Date to [number, MeasurementType]
- user
- [number, MeasurementType] to e.g.: 'yesterday','5 days ago', 'now' @see original issue description for concrete examples
- developer
Non-Functional
- Internationalization
- The product owner modifies the translation
- Accessibility
- It's tested with screen reader
- Maintenance
- The service
dateFormatter
follows given code style - Documentation is included
- The service
- Scalability
-
dateFormatter
implementation works 'immutable' - Product-Owner states:
- There is no demand for scheduled dates e.g.: 'in 5 Years, in 2 Minutes'
-
- Time-Behaviour
- not specified yet
Original Issue Description
Concerns the question board and MotDs, presentation board (question wall).
- Just now (up to 30 seconds)
- 1 minute ago
- x minutes ago
- quarter of an hour
- half an hour ago
- 1 hour ago
- 2 hours ago
After 2 hours:
- Today at {time}
- Yesterday at {time}
- 2 days ago at {time} (German: Vorgestern um {time})
- 1 week ago
- 2 weeks ago
After 2 weeks:
- date and time
Extend functionality of ArsDateFormatter by time margin e.g.: +-10 minutes