Table of Contents

Class TimeAgoInfo

Namespace
Dynamicweb.Frontend
Assembly
Dynamicweb.dll

Represents a time duration in a human-readable format, indicating how long ago an event occurred.

public sealed class TimeAgoInfo
Inheritance
TimeAgoInfo
Inherited Members

Properties

TimeUnit

Gets or sets the type of the time unit (e.g., seconds, minutes, hours).

public TimeUnitType TimeUnit { get; }

Property Value

TimeUnitType

Value

Gets or sets the value representing the time duration.

public int Value { get; }

Property Value

int

Methods

FromDateTimeRange(DateTime, DateTime)

Creates a TimeAgoInfo instance representing the elapsed time between two dates.

public static TimeAgoInfo? FromDateTimeRange(DateTime from, DateTime to)

Parameters

from DateTime
to DateTime

Returns

TimeAgoInfo

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.

To top