프로그래밍 언어/Delphi

[Reference] System.SysUtils.Date

얗마 2017. 3. 27. 20:57

Delphi

function Date: TDateTime;

C++

extern PACKAGE System::TDateTime __fastcall Date(void);

Properties

Type

Visibility

Source

Unit

Parent

function

public

System.SysUtils.pas

System.SysUtils.hpp

System.SysUtils

System.SysUtils

Description

Returns the current date.

Use Date to obtain the current local date as a System.TDateTime value.

The time portion of the value is 0 (midnight).

 

현재 날짜를 반환합니다.

Date를 사용하여 현재 로컬 날짜를 System.TDateTime 값으로 가져옵니다.

값의 시간 부분은 0 (자정)입니다.

 

Example

var

  Today: string;

 

begin

  Today := DateToStr(Date);

 

  // 결과: 2017-03-27 ※ 2017 3 27일 기준

  Writeln(Today);

  Readln;

end.

 

portion 미국식 [|pɔ:rʃn]   영국식 [|pɔ:ʃn]   중요

1. (더 큰 것의) 부분
2. (
음식의) 1인분
3.

 

출처: http://docwiki.embarcadero.com/Libraries/XE2/en/System.SysUtils.Date