Modul:TimestampedTable: Istoricul versiunilor

Sari la navigare Sari la căutare

Legendă: (actuală) = diferențe față de versiunea curentă, (prec) = diferențe față de versiunea precedentă, M = modificare minoră

14 iulie 2024

  • actualăprec 20:2814 iulie 2024 20:28Sergiu discuție contribuții 744 de octeți +744 Pagină nouă: local DateUtils = require('Modul:DateUtils') local p = {} local function getTimestampedValueFromArray(arr, ts) local tsDate = type(ts) == 'string' and DateUtils.parseDate(ts) or type(ts) == 'table' and ts if not tsDate then tsDate = nil end local closestDate = nil local closestDateLabel = nil for k,v in pairs(arr) do local crtStartDate = k == '_' and {year=-3000, precision=9} or DateUtils.parseDate(k) if (nil == tsDate or (tsDate and DateUtils.compare(crtStartDate,...