TimePlugin Class

Definition

TimePlugin provides a set of functions to get the current time and date.

public sealed class TimePlugin
type TimePlugin = class
Public NotInheritable Class TimePlugin
Inheritance
TimePlugin

Constructors

TimePlugin()

Methods

Date(IFormatProvider)

Get the current date

DateMatchingLastDayName(DayOfWeek, IFormatProvider)

Get the date of the previous day matching the supplied day name

Day(IFormatProvider)

Get the current day of the month

DayOfWeek(IFormatProvider)

Get the current day of the week

DaysAgo(Double, IFormatProvider)

Get the date a provided number of days in the past

Hour(IFormatProvider)

Get the current clock hour

HourNumber(IFormatProvider)

Get the current clock 24-hour number

Minute(IFormatProvider)

Get the minutes on the current hour

Month(IFormatProvider)

Get the current month name

MonthNumber(IFormatProvider)

Get the current month number

Now(IFormatProvider)

Get the current date and time in the local time zone"

Second(IFormatProvider)

Get the seconds on the current minute

Time(IFormatProvider)

Get the current time

TimeZoneName()

Get the local time zone name

TimeZoneOffset(IFormatProvider)

Get the local time zone offset from UTC

Today(IFormatProvider)

Get the current date

UtcNow(IFormatProvider)

Get the current UTC date and time

Year(IFormatProvider)

Get the current year

Applies to