DateProvider

component fbx.data.DateProvider

Low precision date convenience object for clocks.

property date

Current date string. This date is updated automatically at a slow rate.

property format

Pattern given as string to format the date property. The pattern follows Qt’s date format standards, where:

  • dd is the day as number with a leading zero (01 to 31)

  • ddd is the abbreviated localized day name (e.g. ‘Mon’ to ‘Sun’). Uses QDate::shortDayName().

  • dddd is the long localized day name (e.g. ‘Monday’ to ‘Qt::Sunday’). Uses QDate::longDayName().

  • M is the month as number without a leading zero (1-12)

  • MM is the month as number with a leading zero (01-12)

  • MMM is the abbreviated localized month name (e.g. ‘Jan’ to ‘Dec’). Uses QDate::shortMonthName().

  • MMMM is the long localized month name (e.g. ‘January’ to ‘December’). Uses QDate::longMonthName().

  • yy is the year as two digit number (00-99)

  • yyyy is the year as four digit number