Time#

asFreq

Convert X to specified frequency.

businessDay

If X is a business day (Monday to Friday), return date(X).

businessMonthBegin

Return the first business day (Monday to Friday) of the month that X belongs to.

businessMonthEnd

Return the last business day (Monday to Friday) of the month that X belongs to.

businessQuarterBegin

Return the first business day (Monday to Friday) of the quarter that X belongs to.

businessQuarterEnd

Return the last day of the quarter that X belongs to.

businessYearBegin

Return the first business day (Monday to Friday) of the year that X belongs to and that starts in the month of startingMonth.

businessYearEnd

Return the last business day (Monday to Friday) of the year that X belongs to and that ends in the month of endingMonth.

concatDateTime

Combine date and time into one new variable.

date

Convert X into DATE type.

dayOfMonth

Return the day of the month for each element in X.

dayOfWeek

Return which day of the week is X.

dayOfYear

Return the day of the year for each element in X.

daysInMonth

Return the number of days in the month for each element in X.

convertTZ

Convert obj from time zone srcTZ to time zone destTZ.

fy5253

Using the 52-53 weeks in a fiscal year (4-4-5 calendar), it returns the start date of fiscal year which includes X.

fy5253Quarter

Using the 52-53 week in fiscal year (4-4-5 calendar), this function returns the start date of fiscal year which includes X.

gmtime

Convert X from local time zone to GMT (Greenwich Mean Time).

hour

Return the corresponding hour(s).

hourOfDay

For each element in X, return a number from 0 to 23 indicating which hour of the day it falls in.

isLeapYear

Determine if each element in X is in a leap year.

isMonthEnd

Determine if each element in X is the last day of a month.

isMonthStart

Determine if each element in X is the first day of a month.

isQuarterEnd

Determine if each element in X is the last day of a quarter.

isQuarterStart

Determine if each element in X is the first day of a quarter.

isYearEnd

Determine if each element in X is the last day of a year.

isYearStart

Determine if each element in X is the first day of a year.

lastWeekOfMonth

In the calendar month of X, suppose the last "weekday" is d.

microsecond

For each element in X, return a number from 0 to 999999 indicating which microsecond of the second it falls in.

millisecond

For each element in X, return a number from 0 to 999 indicating which millisecond of the second it falls in.

minuteOfHour

For each element in X, return a number from 0 to 59 indicating which minute of the hour it falls in.

month

Return the corresponding month(s).

monthBegin

Return the first day of the month that X belongs to.

monthEnd

Return the last day of the month that X belongs to.

monthOfYear

For each element in X, return a number from 1 to 12 indicating which month of the year it falls in.

nanosecond

For each element in X, return a number indicating which nanosecond of the second it falls in.

now

Return the current timestamp.

quarterBegin

Return the first day of the quarter that X belongs to.

quarterEnd

Return the first day of the quarter that X belongs to.

secondOfMinute

For each element in X, return a number from 0 to 59 indicating which second of the minute it falls in.

semiMonthBegin

Return the first day of the semi-month that X belongs to.

semiMonthEnd

Suppose X is the d-th day of the month:

temporalAdd

Add a value to a temporal variable.

temporalSeq

Resample the time series between start and end based on the frequency specified by rule.

today

Return the current date.

transFreq

For each element of X, conduct a transformation as specified with parameter rule.

weekday

eturn integer(s) to represent of the corresponding weekday(s) of X.

weekBegin

For each element of X, return the first date of the week that it belongs to and that starts on the day as specified by parameter weekday.

weekEnd

For each element of X, return the last date of the week that it belongs to and that ends on the day as specified by parameter weekday.

weekOfMonth

In the calendar month of X, suppose the "week"-th "weekday" is d.

weekOfYear

Return the week number for X.

year

Return the corresponding year(s).

yearBegin

Return the first day of the year that X belongs to and that starts in the month of startingMonth.

yearEnd

Return the last day of the year that X belongs to and that ends in the month of endingMonth.