Duration.ToRecordDuration.ToRecord

SintaxeSyntax

Duration.ToRecord(duration as duration) as record

SobreAbout

Retorna um registro contendo as partes do valor de duração, duration.Returns a record containing the parts the duration value, duration.

  • duration: Uma duration em que o registro é criado.duration: A duration from which the record is created.

Exemplo 1Example 1

Converta #duration(2, 5, 55, 20) em um registro das partes, incluindo dias, horas, minutos e segundos, se aplicável.Convert #duration(2, 5, 55, 20) into a record of its parts including days, hours, minutes and seconds if applicable.

Duration.ToRecord(#duration(2, 5, 55, 20))
DiasDays 22
HorasHours 55
MinutosMinutes 5555
SegundosSeconds 2020