DATE & KISS TẬP 2

Trong bài viết này

Use the Get current date & time action to retrieve the current date và time (or date only, if selected) and store it in a variable. The date format depends on the Windows configuration. To lớn find more information about the syntax of date & time values, go to Variable data types.

Bạn đang xem: Date & kiss tập 2

To địa chỉ various time units to lớn date variables, deploy the Add to datetime action.

To calculate the difference between two dates, use the Subtract dates action. You can retrieve the difference in seconds, minutes, hours, or days.

*

địa chỉ cửa hàng to datetime

Adds (or subtracts) a specific number of seconds, minutes, hours or days to a datetime value.

Input parameters

ArgumentOptionalAcceptsDefault ValueDescription
DatetimeNoDatetimeThe datetime value to alter
AddNoNumeric valueThe numeric value lớn add. Khổng lồ subtract a time, the value should be negative. For example, địa chỉ -7 days here to go back one week
Time unitN/ASeconds, Minutes, Hours, Days, Months, YearsSecondsThe time unit the time to địa chỉ represents

Variables produced

ArgumentTypeDescription
ResultedDateDatetimeThe new, altered datetime value

Exceptions

This kích hoạt doesn"t include any exceptions.

Subtract dates

Finds the time difference between two given dates in days, hours, minutes, or seconds.

Input parameters

ArgumentOptionalAcceptsDefault ValueDescription
From dateNoDatetimeThe datetime khổng lồ subtract the first datetime from. This will be the base datetime, so generally put the later date/time in this attribute
Subtract dateNoDatetimeThe datetime lớn subtract
Get difference inN/ASeconds, Minutes, Hours, DaysDaysThe unit of time to express the difference in

Variables produced

ArgumentTypeDescription
TimeDifferenceNumeric valueThe difference in time as a numeric value

Exceptions

This action doesn"t include any exceptions.

Xem thêm: Anh Ơi Anh Ở Lại Và Sự Trở Lại Hoàn Hảo Của Chi Pu, Lời Bài Hát Anh Ơi Ở Lại

Get current date & time

Retrieves the current date or the current date & time.

Input parameters

ArgumentOptionalAcceptsDefault ValueDescription
RetrieveN/ACurrent date and time, Current date onlyCurrent date & timeSpecify whether to get the date & time, or just the date. If the latter is chosen, the time value will be stored as midnight (0:00:00)
Time zoneN/ASystem time zone, Specific time zoneSystem time zoneWhether to lớn use the system"s time zone or a custom one
Country/regionNoText valueEurope/BucharestThe country/region khổng lồ get the time of or showroom a numeric value as the hours that will be added in the UTC time zone

Variables produced

ArgumentTypeDescription
CurrentDateTimeDatetimeThe current datetime value

Exceptions

ExceptionDescription
Failed to get current date & timeIndicates that there was a problem retrieving the current date và time
Specified country/region not foundIndicates that the specified country or region wasn"t found