Provides fuzzy timestamps by formatting dates as "X time ago" More...
Inherits Aspose::Email::Amp::AmpComponent.
Public Member Functions | |
| System::DateTime | get_DateTime () const |
| A datetime. More... | |
| void | set_DateTime (System::DateTime value) |
| A datetime. More... | |
| System::String | get_Locale () const |
| 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 More... | |
| void | set_Locale (System::String value) |
| 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 More... | |
| int32_t | get_Cutoff () const |
| Display the original date if time distance is older than cutoff (seconds). More... | |
| void | set_Cutoff (int32_t value) |
| Display the original date if time distance is older than cutoff (seconds). More... | |
| System::String | get_RequiredScript () override |
| Required script that muct be added to head section. More... | |
| AmpTimeago (System::DateTime dateTime) | |
| Create instance of AmpTimeago. More... | |
| AmpTimeago (System::DateTime dateTime, int32_t width, int32_t height) | |
| Create instance of AmpTimeago. More... | |
| System::String | ToAmpHtml () override |
| Represents amp html version of component. More... | |
| System::String | ToHtml () override |
| Represents html version of component. More... | |
Public Member Functions inherited from Aspose::Email::Amp::AmpComponent | |
| System::SharedPtr< AmpAttributes > | get_Attributes () const |
| AMP provides a set of common attributes that are extended to many AMP components. More... | |
| System::String | get_Fallback () const |
| A fallback is a convention that allows the element to communicate to the reader that the browser does not support the element. More... | |
| void | set_Fallback (System::String value) |
| A fallback is a convention that allows the element to communicate to the reader that the browser does not support the element. More... | |
| System::SharedPtr< AmpComponent > | get_Placeholder () const |
| 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. More... | |
| void | set_Placeholder (System::SharedPtr< AmpComponent > value) |
| 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. More... | |
| AmpComponent () | |
Provides fuzzy timestamps by formatting dates as "X time ago"
| Aspose::Email::Amp::AmpTimeago::AmpTimeago | ( | System::DateTime | dateTime | ) |
Create instance of AmpTimeago.
| dateTime |
| Aspose::Email::Amp::AmpTimeago::AmpTimeago | ( | System::DateTime | dateTime, |
| int32_t | width, | ||
| int32_t | height | ||
| ) |
Create instance of AmpTimeago.
| dateTime | |
| width | |
| height |
| int32_t Aspose::Email::Amp::AmpTimeago::get_Cutoff | ( | ) | const |
Display the original date if time distance is older than cutoff (seconds).
| System::DateTime Aspose::Email::Amp::AmpTimeago::get_DateTime | ( | ) | const |
A datetime.
| System::String Aspose::Email::Amp::AmpTimeago::get_Locale | ( | ) | const |
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
|
overridevirtual |
Required script that muct be added to head section.
Implements Aspose::Email::Amp::AmpComponent.
| void Aspose::Email::Amp::AmpTimeago::set_Cutoff | ( | int32_t | value | ) |
Display the original date if time distance is older than cutoff (seconds).
| void Aspose::Email::Amp::AmpTimeago::set_DateTime | ( | System::DateTime | value | ) |
A datetime.
| void Aspose::Email::Amp::AmpTimeago::set_Locale | ( | System::String | value | ) |
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
|
overridevirtual |
|
overridevirtual |