AmpTimeago
Contents
[
Hide
]AmpTimeago class
Inherits: Aspose::Email::Amp::AmpComponent
Provides fuzzy timestamps by formatting dates as “X time ago”
Constructors
| Name | Description |
|---|---|
| AmpTimeago (2 overloads) | Create instance of AmpTimeago . |
Methods
| Name | Description |
|---|---|
| get_Cutoff | Display the original date if time distance is older than cutoff (seconds). |
| get_DateTime | A datetime. |
| get_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 |
| get_RequiredScript | Required script that muct be added to head section. |
| set_Cutoff | Display the original date if time distance is older than cutoff (seconds). |
| set_DateTime | A datetime. |
| set_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 |
| ToAmpHtml | Represents amp html version of component. |
| ToHtml | Represents html version of component. |