List.DateTimes
List.DateTimes(start as datetime, count as number, step as duration) as list
Devuelve una lista de valores datetime
de tamaño count
, empezando en start
. El incremento especificado, step
, es un valor duration
que se suma a cada valor.
Se crea una lista de 10 valores comenzando cinco minutos antes del día de Año Nuevo (#datetime(2011, 12, 31, 23, 55, 0)) con incrementos de un minuto (#duration(0, 0, 1, 0)).
Uso
List.DateTimes(#datetime(2011, 12, 31, 23, 55, 0), 10, #duration(0, 0, 1, 0))
Salida
{
#datetime(2011, 12, 31, 23, 55, 0),
#datetime(2011, 12, 31, 23, 56, 0),
#datetime(2011, 12, 31, 23, 57, 0),
#datetime(2011, 12, 31, 23, 58, 0),
#datetime(2011, 12, 31, 23, 59, 0),
#datetime(2012, 1, 1, 0, 0, 0),
#datetime(2012, 1, 1, 0, 1, 0),
#datetime(2012, 1, 1, 0, 2, 0),
#datetime(2012, 1, 1, 0, 3, 0),
#datetime(2012, 1, 1, 0, 4, 0)
}