AmpTimeago
Contents
[
Hide
]AmpTimeago class
Provides fuzzy timestamps by formatting dates as “X time ago”
The AmpTimeago type exposes the following members:
Constructors
| Name | Description |
|---|---|
| AmpTimeago(date_time) | Initializes a new instance of the AmpTimeago class |
| AmpTimeago(date_time, width, height) | Initializes a new instance of the AmpTimeago class |
Properties
| Name | Description |
|---|---|
| required_script | Required script that muct be added to head section. |
| attributes | AMP provides a set of common attributes that are extended to many AMP components. |
| fallback | A fallback is a convention that allows the element to communicate to the reader that the browser does not support the element. |
| placeholder | The element marked with the placeholder attribute acts as a placeholder for the parent AMP element. If specified, a placeholder element must be a direct child of the AMP element. |
| date_time | A datetime. |
| locale | By default, the local is set to en; however, you can specify other locales. See full list of supported locales https://amp.dev/documentation/components/amp-timeago/?format=email |
| cutoff | Display the original date if time distance is older than cutoff (seconds). |
Methods
| Name | Description |
|---|---|
| to_amp_html() | |
| to_html() |
See Also
- namespace aspose.email.amp
- assembly Aspose.Email