DateFormat

Since: BlackBerry 10.0.0

#include <bb/utility/i18n/DateFormat>

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

A wrapper for a list of supported date/time formats.

This class offers an enum that represents Qt equivalents of International Components for Unicode (ICU) date/time format patterns.


Overview

Public Types Index

enum Type

Short 1, Medium 2, Long 3, Full 4

Public Types

Type

The list of supported date/time formats.

Since:

BlackBerry 10.0.0

Short 1

The equivalent to the ICU pattern, DateFormat::kShort.

Medium 2

The equivalent to the ICU pattern, DateFormat::kMedium.

This represents "Mar 2, 2013 5:04:11 PM" in the US English locale.

Since:

BlackBerry 10.0.0

Long 3

The equivalent to the ICU pattern, DateFormat::kLong.

This represents "March 2, 2013 5:04:11 PM EST" in the US English locale.

Since:

BlackBerry 10.0.0

Full 4

The equivalent to the ICU pattern, DateFormat::kFull.

This represents "Sunday, March 2, 2013 5:04:11 PM EST" in the US English locale.

Since:

BlackBerry 10.0.0

Last modified: 2014-09-30



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

comments powered by Disqus