Class Time
Generate a standard HTML5 <time> tag
Implements
System.Web.IHtmlString
System.Collections.Generic.IEnumerable<ITag>
System.Collections.IEnumerable
Inherited Members
Namespace: ToSic.Razor.Html5
Assembly: ToSic.Razor.dll
Syntax
public class Time : Tag<Time>, IRawHtmlString, IHtmlString, IHtmlTag, ITag, IEnumerable<ITag>, IEnumerable
Methods
| Improve this Doc View SourceDatetime(DateTime)
Set the datetime attribute on the <time> tag
Declaration
public Time Datetime(DateTime value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.DateTime | value | what should be in datetime='...'. If called multiple times, later values replace the previous value. |
Returns
| Type | Description |
|---|---|
| Time | a Time object to enable fluid command chaining |
Datetime(String)
Set the datetime attribute on the <time> tag
Declaration
public Time Datetime(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | value | what should be in datetime='...'. If called multiple times, later values replace the previous value. |
Returns
| Type | Description |
|---|---|
| Time | a Time object to enable fluid command chaining |
Implements
System.Web.IHtmlString
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable