AmpTimeago

AmpTimeago class

Inherits: Aspose::Email::Amp::AmpComponent

Provides fuzzy timestamps by formatting dates as “X time ago”

Constructors

NameDescription
AmpTimeago (2 overloads)Create instance of AmpTimeago .

Methods

NameDescription
get_CutoffDisplay the original date if time distance is older than cutoff (seconds).
get_DateTimeA datetime.
get_LocaleBy 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_RequiredScriptRequired script that muct be added to head section.
set_CutoffDisplay the original date if time distance is older than cutoff (seconds).
set_DateTimeA datetime.
set_LocaleBy 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
ToAmpHtmlRepresents amp html version of component.
ToHtmlRepresents html version of component.