RelativeDateFormat

Since: BlackBerry 10.2.0

#include <bb/utility/i18n/RelativeDateFormat>

To link against this class, add the following line to your .pro file: LIBS += -lbbutilityi18n

A list of supported relative date/time formatters.


Overview

Public Types Index

enum Type

TimeCritical = 1, NonTimeCritical = 2

Public Types

Type

The list of supported relative date/time formaters.

Since:

BlackBerry 10.2.0

TimeCritical = 1

The default relative date/time formatter.

NonTimeCritical = 2

A relative date/time formatter without time.

This type of RelativeDateFormatter should be used when the user does not care about the specific time. For example, when software was last updated, friends' birthdays, holidays, etc.

date-time range

example

past years

March 2012

same year; past 4+ days

Jan 20

past 2-3 days

Monday

previous day

Yesterday

same day

Today

following day

Tomorrow

future 2-3 days

Saturday

same year; future 4+ days

Dec 20

future years

March 2014

Since:

BlackBerry 10.2.0

Last modified: 2014-06-24



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus