Odisseia 1.21.56
Português do BrasilManual oficial · 1.21.56
Sobre a tradução em inglês

DecodeDateTime#

Decompõe data e hora em todos os seus componentes.

Assinatura#

procedure DecodeDateTime(Value: DateTime; out Year: Integer; out Month: Integer; out Day: Integer; out Hour: Integer; out Minute: Integer; out Second: Integer; out Millisecond: Integer);

Exemplo#

var
  Ano, Mes, Dia, Hora, Minuto, Segundo, Ms: Integer;

begin
  DecodeDateTime(EncodeDateTime(2026, 3, 15, 14, 30, 45, 123), Ano, Mes, Dia, Hora, Minuto, Segundo, Ms);
  WriteLn(IntToStr(Hora) + ':' + IntToStr(Minuto) + ':' + IntToStr(Segundo) + '.' + IntToStr(Ms));
end.

Saída:

14:30:45.123

Pertence ao núcleo, não exige uses nem permissões. Entradas inválidas ou resultados fora do intervalo suportado são rejeitados.