Delphi Date-Time function (dateutils unit)

Source: Internet
Author: User

Source: Http://shao171.blog.163.com/blog/static/238397019201502011844293/CompareDate
The function compares the size of the date part of a two datetime value
Comparedatetime
Function compares the size of two datetime values
Comparetime
The function compares the size of the time portion of two datetime values
Dateof
function to remove the time portion of a datetime value
Datetimetojuliandate
function conversion Date time value is Julian day
Datetimetomodifiedjuliandate
function conversion Date time value for improved Julian Day
Datetimetounix
function conversion Date time value is Unix/linus datetime value
Day of week function constant *iso 8601 standard in the Order of the week of the constant
Dayof
The day that the function returns a DateTime value
Dayofthemonth
The day that the function returns a DateTime value
DayoftheWeek
The function returns a DateTime value that is the day ordinal of that week
dayOfTheYear
The function returns a DateTime value that is the number of days of the year
Daysbetween
function returns the number of days between two datetime values that differ from each other
Daysinamonth
function returns the number of days in a specified year or month
Daysinayear
function returns the number of days in a specified year
DaysInMonth
The number of days of the month that the function returns a DateTime value
Daysinyear
The number of days that a function returns the year of a datetime value
Dayspan
function returns a fractional number of days between two datetime values
The Decodedateday procedure returns the year of a DateTime value and the number of days of the year
The Decodedatemonthweek procedure returns the year, month, week of the month, and day of the week of a datetime value.
The Decodedatetime procedure returns the year, month, day, hour, minute, second, and millisecond of a datetime value
The Decodedateweek procedure returns the year of a DateTime value, the number of weeks of the year, the day of the week
The Hourodecodedayofweekinmonth procedure returns the year, month, day of the week, and the number of weeks of the month for a datetime value.
Encodedateday
function returns the datetime value for the number of days of the specified year and year
Encodedatemonthweek
The function returns the datetime value of the day ordinal of the month, the week of the specified year, month,
Encodedatetime
The function returns the datetime value of the specified year, month, day, hour, minute, second, and millisecond
Encodedateweek
The function returns the datetime value of the specified year, the number of weeks of that year, the day of the week.
Encodedayofweekinmonth
The function returns the datetime value of the day ordinal of a specified year, month, or month.
Endofaday
function returns the DateTime value for the last second of the specified year, the number of days of the year
Endofamonth
function returns the DateTime value of the last second of the last day of the specified year, month
Endofaweek
The function returns the DateTime value for the last second of the specified year, the number of weeks of the year, the day of the week, and the first
Endofayear
function returns the DateTime value of the last second of the last day of the specified year
Endoftheday
function returns the DateTime value of the last second of the day of the specified datetime value
Endofthemonth
The function returns the date time value of the last second of the last day of the month of the specified datetime value
Endoftheweek
function returns the date time value of the last day of the week of the specified datetime value
Endoftheyear
The function returns the date time value of the last day of the year of the specified datetime value
Hourof
function returns the hour portion of a specified datetime value
Houroftheday
The function returns the hour portion of a specified datetime value.
Hourofthemonth
The function returns the number of hours that have been spent on the first day of the month from 0 o'clock to the specified date from the specified datetime value
Houroftheweek
The function returns the number of hours that have passed since the first day of the week from 0 o'clock to the specified date in the specified datetime value.
Ftheyear
The function returns the number of hours that have passed since the first day of the year from 0 o'clock to the specified date in the specified datetime value
Hoursbetween
function returns the number of hours between two specified datetime values
Hourspan
The function returns the number of hours between the two specified datetime values (including the number of decimal parts)
Incday
function returns the value of a datetime value after a specified number of days
Inchour
function returns the value of a datetime value for a specified number of hours backward
Incmillisecond
The function returns a value that specifies the number of milliseconds that the datetime value goes backwards
Incminute
function returns a value that specifies the number of minutes that a datetime value goes backwards
Incsecond
The function returns a value that specifies the number of seconds that the datetime value goes backwards
Incweek
function returns the value of a datetime value that specifies the number of days of the week
Incyear
function returns the value of a datetime value that specifies the number of days of the week
Isinleapyear
function to determine whether the year of a specified datetime value is a leap period
IsPM
function to determine whether the time of the specified datetime value is after noon 12:0:0
Issameday
function to determine whether a datetime value is the same day as a standard datetime value
IsToday
function to determine whether a datetime value is the same day
Isvaliddate
function to determine whether the specified year, month, or day is a valid date
Isvaliddateday
function determines whether the specified year, the number of days in the year, is the number of days that the year is valid
Isvaliddatemonthweek
function determines whether the specified year, month, week of the month, or the day of the week is a valid date
Isvaliddatetime
function to determine whether the specified year, month, day, hour, minute, second, or millisecond are valid datetime values
Isvaliddateweek
The function determines the specified year, the number of weeks of the year, and whether the in days are valid dates
Isvalidtime
function to determine whether the specified time, minute, second, and millisecond are valid times
Juliandatetodatetime
function conversion Julian date is datetime value
Millisecondof
function returns the millisecond portion of a specified datetime value
Millisecondoftheday
The function returns the number of milliseconds that the specified datetime value is 0:0 0 seconds, 0 milliseconds, and starts at its specified time.
Millisecondofthehour
The function returns the hour of the specified datetime value, 0 minutes, 0 seconds, 0 milliseconds. The number of milliseconds to start to its specified time
Millisecondoftheminute
The 一分钟0秒 function returns the number of milliseconds that the specified datetime value starts at 0 milliseconds to its specified time.
Millisecondofthemonth
The function returns the number of milliseconds of the specified datetime value for the month of 1st, 0 seconds, 0 milliseconds, starting at its specified time
Millisecondofthesecond
function returns the millisecond portion of a specified datetime value
Millisecondoftheweek
The function returns the specified datetime value for the week Monday 0:0 0 seconds 0 milliseconds to its specified time in milliseconds
Millisecondoftheyear
The function returns the year of the specified datetime value January 1 0:0 0 seconds 0 milliseconds to the number of milliseconds to its specified time
Millisecondsbetween
function returns the number of milliseconds (integers) between two specified datetime values
Millisecondspan
function returns the number of milliseconds between two specified datetime values (decimals)
Minuteof
function returns the minute part of a specified datetime value
Minuteoftheday
function returns the number of minutes from 0:0 to its specified time on the day of the specified datetime value
Minuteofthehour
function returns the minute portion of a specified datetime value
Minuteofthemonth
The function returns the number of minutes from the month of 1st 0:0 to its specified time in the specified datetime value
Minuteoftheweek
The function returns the number of minutes from the 1th day of the week that the specified datetime value starts 0:0 to its specified time
Minuteoftheyear
The function returns the number of minutes of the specified datetime value for the year January 1 0:0 to its specified time
Minutesbetween
function returns the number of minutes (integers) between two specified datetime values
Minutespan
function returns the number of minutes (including decimals) between two specified datetime values
Modifiedjuliandatetodatetime
The modified Julian day for function conversion is a datetime value
Monthof
function returns the month portion of a specified datetime value
Monthoftheyear
function returns the month portion of a specified datetime value
Monthsbetween
function returns the number of months (integers) between two specified datetime values
Monthspan
function returns the number of months (including decimals) between two specified datetime values
Nthdayofweek
The function returns the number of weeks of the month for the specified datetime value
Onehour constant Delphi is inversely proportional to time
Onemillisecond constant Delphi is inversely proportional to time
Oneminute constant Delphi is inversely proportional to time
Onesecond
Constant Delphi is inversely proportional to time
Recodedate
function replaces the date part of a specified datetime value
Recodedatetime
Function selection replaces the specified datetime value
Recodeday
Function replaces the day portion of a specified datetime value
Recodehour
function replaces the hour portion of a specified datetime value
Recodemillisecond
function replaces the millisecond portion of a specified datetime value
Recodeminute
Function replaces the minute portion of a specified datetime value
Recodemonth
Function replaces the month portion of a specified datetime value
Recodesecond
Function replaces the second part of a specified datetime value
Recodetime
Function replaces the time portion of a specified datetime value
Recodeyear
Function replaces the year portion of a specified datetime value
Samedate
function determines whether the year, month, and day parts of two datetime values are the same
Samedatetime
function to determine whether the year, month, day, hour, minute, second, and millisecond of two datetime values are the same
SameTime
function determines whether the time, minute, second, and millisecond parts of a two datetime value are the same
Secondof
function returns the seconds portion of a specified datetime value
Secondoftheday
The function returns the number of seconds from 0:0 0 seconds to its specified time from the specified date time value
Secondofthehour
The function returns the number of seconds from the specified datetime value that hour 0 minutes 0 seconds to its specified time
Secondoftheminute
The function returns the number of seconds from the specified date time value that minute 0 seconds to its specified time
Secondofthemonth
The function returns the number of seconds from the specified datetime value that month 1st 0:0 0 seconds to its specified time
Secondoftheweek
The function returns the number of seconds from Monday 0:0 0 seconds of the week of the specified datetime value to its specified time
Secondoftheyear
The function returns the number of seconds from the specified datetime value that year, January 1, 0:0 0 seconds to its specified time
Secondsbetween
function returns the number of seconds (integers) between two specified datetime values
Secondspan
function returns the number of seconds (including decimals) between two specified datetime values
Startofaday
The function returns a DateTime value that starts on that day (0:0 0 seconds, 0 milliseconds)
Startofamonth
The function returns a DateTime value that starts on the first day of the specified year, month (0:0 0 seconds, 0 milliseconds)
Startofaweek
The function returns the datetime value of the specified year, the number of weeks, the day of the week (0:0 0 seconds, 0 milliseconds)
Startofayear
The function returns a DateTime value starting at the specified year (January 1 0:0 0 seconds 0 milliseconds)
Startoftheday
The function returns a DateTime value that starts on the day of the specified datetime value (0:0 0 seconds 0 milliseconds)
Startofthemonth
The function returns a DateTime value that starts at the beginning of the month (1st 0:0 0 seconds 0 milliseconds)
Startoftheweek
The function returns a DateTime value that starts the week of the specified datetime value (0:0 0 seconds, 0 milliseconds on the first day)
Startoftheyear
The function returns the datetime value of the specified DateTime value that year (January 1 0:0 0 seconds 0 milliseconds)
Timeof
function returns the time portion of a specified datetime value
Today
function returns the date of the day
Tomorrow
function returns the date of the next day
Tryencodedateday
The function calculates the datetime value for the specified year, the number of days of the year,
Tryencodedatemonthweek
The function calculates a datetime value for the specified year, month, week of the month, in days
Tryencodedatetime
Function conversions Specify year, month, day, hour, minute, second, and millisecond as datetime values
Tryencodedateweek
The function transforms the specified year, the number of weeks, the in days as datetime values
Tryencodedayofweekinmonth
function conversion Specifies the number of years, months, and weeks of the month for datetime values
Tryjuliandatetodatetime
function conversions Specify Julian days as datetime values
Trymodifiedjuliandatetodatetime
function conversion Specifies that the Julian day is a datetime value
Tryrecodedatetime
function selection replaces certain parts of a specified date time value
Unixtodatetime
Function convert UNIX or Linux date, time value to Delphi datetime value
Weekof
The function returns the number of weeks that a specified datetime value is the first of a year
Weekofthemonth
function to return a specified datetime value is the week ordinal of a month
Weekoftheyear
The function returns the number of weeks that a specified datetime value is the first of a year
Weeksbetween
function returns the number of weeks (integers) between two specified datetime values
Weeksinayear
function returns the number of weeks for a specified year
Weeksinyear
How many weeks does the function return the year of the specified datetime value?
Weekspan
function returns the number of weeks (including decimals) between two specified datetime values
Withinpastdays
function to determine whether the difference between two dates is within the range of the specified number of days
Withinpasthours
function to determine whether the difference between two datetime values is within the specified hour range
Withinpastmilliseconds
function to determine whether the difference between two datetime values is within the specified millisecond range
Withinpastminutes
function to determine whether the difference between two datetime values is within the range of a specified minute
Withinpastmonths
function to determine whether the difference between two datetime values is within the range of a specified month
Withinpastseconds
function to determine whether the difference between two datetime values is within the specified number of seconds
Withinpastweeks
function to determine whether the difference between two datetime values is within the range of the specified number of weeks
Withinpastyears
function to determine whether the difference between the two datetime values is within the range of a specified number of years
Yearof
function returns the year part of a specified datetime value
Yearsbetween
function returns the number of years (integers) between two specified datetime values
Yearspan
function returns the number of years (including decimals) between two specified datetime values
Yesterday
function returns the date of the day (yesterday) before the current date

Maxim 1, the world favors ambitious people, success depends on the only condition is to think, when your thinking at the highest speed, optimistic and cheerful mood will be full of the whole body, no one can do a thing in the negative thinking fire, a person's most perfect work is full of happy, optimistic, Affectionate state of completion, Maxim 2, the land is to its fertile and harvest is valued, can also land, but it is not the production of food, but the truth, if only to breed meditation think and fantasy words, even if the big talent is only sand or salt pond, the above even the grass also long not come out, Delphi Date-Time function (Dateutils unit) [Delphi].

Delphi Date-Time function (dateutils unit)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.