Дата и время functions

[ ] indicates optional parameters

ВРЕМЗНАЧ(время_как_текст)
ВРЕМЯ(час, минута, секунда)
ГОД(дата_как_число)
ДАТА(год, месяц, день)
ДАТАЗНАЧ(дата_как_текст)
ДАТАМЕС(начальная_дата, месяцев)
ДЕНЬ(дата_как_число)
ДЕНЬНЕД(дата_как_число, [тип])
ДНЕЙ360(начальная_дата, конечная_дата, [метод])
ДОЛЯГОДА(начальная_дата, конечная_дата, [basis])
КОНМЕСЯЦА(начальная_дата, месяцев)
МЕСЯЦ(дата_как_число)
МИНУТЫ(дата_как_число)
НОМНЕДЕЛИ(дата_как_число, [тип])
РАБДЕНЬ(начальная_дата, количество_дней, [holidays])
РАЗНДАТ(дата1, дата2, единиц)
СЕГОДНЯ()
СЕКУНДЫ(дата_как_число)
ТДАТА()
ЧАС(дата_как_число)
ЧИСТРАБДНИ(начальная_дата, конечная_дата, [holidays])


Дата и время functions

ВРЕМЗНАЧ(время_как_текст)

Returns the time value that corresponds to a time in text form. You should not need to use this function, as times are automatically converted from text to time values when they are used in formulas.

время_как_текстThe time that you want to convert. It can contain time separators and/or AM/PM designators. If seconds or minutes and seconds are not specified then they will default to zero.


ВРЕМЯ(час, минута, секунда)

Returns the serial number corresponding to a specified hour, minute and second.

часThe hour number. Preferably between 0 and 23.
минутаThe minute number. Preferably between 0 and 59.
секундаThe second number. Preferably between 0 and 59.


ГОД(дата_как_число)

Returns the year number (greater than or equal to 1900) from the specified date/time value.

дата_как_числоThe date/time value from which you want to extract the year number.


ДАТА(год, месяц, день)

Returns the date value corresponding to a specified year, month and day. Note that only dates from 1900 onwards can be used.

годThe year number. If you enter a number less than 1900 then 1900 will be added to the value.
месяцThe month number. Preferably between 1 and 12.
деньThe day number. Preferably between 1 and 31.


ДАТАЗНАЧ(дата_как_текст)

Returns the date value that corresponds to a date in text form. Note that only dates from 1900 onwards can be used. You should not need to use this function, as dates are automatically converted from text to date values when they are used in formulas.

дата_как_текстThe date that you want to convert. It can contain date separators and/or a month name. If only the day and month is supplied then the year will default to the current year.


ДАТАМЕС(начальная_дата, месяцев)

Returns the date that is the start date plus or minus a number of months.

начальная_датаThe 'from' date.
месяцевThe number of months to be added or subtracted.


ДЕНЬ(дата_как_число)

Returns the day number (between 1 and 31) from the specified date value.

дата_как_числоThe date value from which you want to extract the day number.


ДЕНЬНЕД(дата_как_число, [тип])

Returns a number representing the day of the week of a given date.

дата_как_числоThe date/time value from which you want the day of the week.
типThe range of values returned and what they represent. The possible values are:
1From 1 to 7, where 1 = Понедельникand 7 = Воскресенье.
2From 1 to 7, where 1 = Вторникand 7 = Понедельник.
3From 0 to 6, where 0 = Вторник and 6 = Понедельник.
If this parameter is omitted it defaults to 1.


ДНЕЙ360(начальная_дата, конечная_дата, [метод])

Returns the number of days between two dates using a 360-day year (30 day months).

начальная_датаThe 'from' date.
конечная_датаThe 'to' date.
методIndicates how to deal with end dates that are the 31st of the month (the start date will always be moved from the 31st to the 30th). The options are:
ЛОЖЬUS (NASD) method (if start date is less than the 30th then set end date to 1st of next month, else set end date to 30th).
ИСТИНАEuropean method (end date moved form 31st to 30th).
If this parameter is omitted it defaults to ЛОЖЬ.


ДОЛЯГОДА(начальная_дата, конечная_дата, [basis])

Returns the fraction of a year represented by the difference between two dates.

начальная_датаThe 'from' date.
конечная_датаThe 'to' date.
basisThe method used to represent the number of days in the period versus the number of days in a year. The possible values are:
0US (NASD) 30/360
1Actual/actual
2Actual/360
3Actual/365
4European 30/360
If this parameter is omitted it defaults to 0.


КОНМЕСЯЦА(начальная_дата, месяцев)

Returns the date that is the last day of the month calculated from the start date plus or minus a number of months.

начальная_датаThe 'from' date.
месяцевThe number of months to be added or subtracted.


МЕСЯЦ(дата_как_число)

Returns the month number (between 1 and 12) from the specified date/time value.

дата_как_числоThe date/time value from which you want to extract the month number.


МИНУТЫ(дата_как_число)

Returns the minute number (between 0 and 59) from the specified date/time value.

дата_как_числоThe date/time value from which you want to extract the minute number.


НОМНЕДЕЛИ(дата_как_число, [тип])

Returns the week of the year of a given date.

дата_как_числоThe date/time value from which you want the week number.
типThe method used to calculate the week number. The possible values are:
0International Standard (ISO) week numbers. Weeks begin on Monday. Week 1 is the first week where 4 or more days are in the specified year.
1Microsoft week numbers. Weeks begin on Sunday. Week 1 is the week that contains January 1st.
2Microsoft week numbers. Weeks begin on Monday. Week 1 is the week that contains January 1st.
If this parameter is omitted it defaults to 1.


РАБДЕНЬ(начальная_дата, количество_дней, [holidays])

Returns the working day that is the start date plus or minus a number of working days (weekdays), excluding any holidays.

начальная_датаThe 'from' date.
количество_днейThe number of working days to add or subtract.
holidaysA date or array of dates or a reference to a list of dates that are to be treated as non-working days.


РАЗНДАТ(дата1, дата2, единиц)

Returns the difference between two dates in the units that you specify.

дата1The 'from' date.
дата2The 'to' date. This should be greater than or equal to the 'from' date.
единицThe units in which you want the difference expressed. The possible values are:
"y"The difference in years.
"m"The difference in months.
"d"The difference in days.
"ym"The difference in months, dropping any whole years (the result will always be between 0 and 11).
"yd"The difference in days, dropping any whole years (the result will always be between 0 and 365).
"md"The difference in days, dropping any whole months (the result will always be between 0 and 30).


СЕГОДНЯ()

Returns the serial number corresponding to the current date.



СЕКУНДЫ(дата_как_число)

Returns the second number (between 0 and 59) from the specified date/time value.

дата_как_числоThe date/time value from which you want to extract the second number.


ЧАС(дата_как_число)

Returns the hour number (between 0 and 23) from the specified date/time value.

дата_как_числоThe date/time value from which you want to extract the hour number.


ТДАТА()

Returns the serial number corresponding to the current date and time.



ЧИСТРАБДНИ(начальная_дата, конечная_дата, [holidays])

Returns the number of working days (weekdays) between the start and end dates, excluding any holidays.

начальная_датаThe 'from' date.
конечная_датаThe 'to' date.
holidaysA date or array of dates or a reference to a list of dates that are to be treated as non-working days.