AmpTimeago Class

Provides fuzzy timestamps by formatting dates as "X time ago"
Inheritance Hierarchy

Namespace:  Aspose.Email.Amp
Assembly:  Aspose.Email (in Aspose.Email.dll) Version: 21.2
Syntax
public class AmpTimeago : AmpComponent

The AmpTimeago type exposes the following members.

Constructors
  NameDescription
Public methodAmpTimeago(DateTime)
Create instance of AmpTimeago.
Public methodAmpTimeago(DateTime, Int32, Int32)
Create instance of AmpTimeago.
Properties
  NameDescription
Public propertyAttributes
AMP provides a set of common attributes that are extended to many AMP components.
(Inherited from AmpComponent.)
Public propertyCutoff
Display the original date if time distance is older than cutoff (seconds).
Public propertyDateTime
A datetime.
Public propertyFallback
A fallback is a convention that allows the element to communicate to the reader that the browser does not support the element.
(Inherited from AmpComponent.)
Public propertyLocale
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
Public propertyPlaceholder
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.
(Inherited from AmpComponent.)
Public propertyRequiredScript
Required script that muct be added to head section.
(Overrides AmpComponentRequiredScript.)
Methods
See Also