快捷搜索:  as  2018  FtCWSyGV  С˵  test  xxx  Ψһ  w3viyKQx

和记娱乐怡情怎么样_机器人论坛



RecodeDateTime、RecodeDate、RecodeTime、RecodeYear ... 改动光阴

DateUtils.RecodeDateTime();

DateUtils.RecodeDate();

DateUtils.RecodeTime();

DateUtils.RecodeYear();

DateUtils.RecodeMonth();

DateUtils.RecodeDay();

DateUtils.RecodeHour();

DateUtils.RecodeMinute();

DateUtils.RecodeSecond();

DateUtils.RecodeMilliSecond();

DateUtils.TryRecodeDateTime();

unit Unit1;

interface

uses

Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,

Dialogs, StdCtrls;

type

TForm1 = class(TForm)

procedure FormCreate(Sender: TObjec和记娱乐怡情怎么样t);

end;

var

Form1: TForm1;

implementation

{$R *.dfm}

uses DateUtils;

procedure TForm1.FormCreate(Sender: TObject);

const

st = 'yyyy-m-d h:n:s:z';

var

t1, t2: TDateTime;

begin

t1 := EncodeDateTime(2001, 1, 1, 1, 1, 1, 1);

t2 := RecodeDateTime(t1, 2009, 5, 21, 11, 22, 33, 999);

ShowMessage(FormatDateTime(st, t2));  //2009-5-21 11:22:33:999

t2 := R和记娱乐怡情怎么样ecodeDate(t1, 2009, 5, 21);

ShowMessage(FormatDateTime(st, t2));  //2009-5-21 1:1:1:1

t2 := RecodeTime(t1, 11, 22, 33, 999);

ShowMessage(FormatDateTime(st, t2));  //2009-1-1和记娱乐怡情怎么样 11:22:33:999

t2 := RecodeYear(t1, 2009);

Show和记娱乐怡情怎么样Message(FormatDateTime(st, t2));  //2009-1-1 1:1:1:1

t2 := RecodeMonth(t1, 5);

ShowMessage(FormatDateTime(st, t2));  //2001-5-1 1:1:1:1

t2 := RecodeDay(t1, 21);

ShowMessage(FormatDateTime(st, t2));  //2001-1-21 1:1:1:1

t2 := RecodeHour(t1, 11);

ShowMessage(FormatDateTime(st, t2));  //2001-1-1 11:1:1:1

t2 := RecodeMinute(t1, 22);

ShowMessage(FormatDateTime(st, t2));  //2001-1-1 1:22:1:1

t2 := RecodeSecond(t1, 33);

ShowMessage(FormatDateTime(st, t2));  //2001-1-1 1:1:33:1

t2 := RecodeMilliSecond(t1, 999);

ShowMessage(FormatDateTime(st, t2));  //2001-1-1 1:1:1:999

if TryRecodeDateTime(t1, 2009, 5, 21, 11, 22, 33, 999, t2) then

ShowMessage(FormatDateTime(st, t2));  //2009-5-21和记娱乐怡情怎么样 11:22:33:999

end;

end.

您可能还会对下面的文章感兴趣: