View source

class thx.format.Format

Available on all platforms

Class Fields

static var defaultCulture(get,set):Culture

static function f(subject:Dynamic, pattern:String, ?culture:Culture):Dynamic

Applies the right format according to the type of subject.

Date.now().f("D"); // returns the date in long format
12345.f("n", it);  // returns a number formatted using the provided culture
Toggle inherited fields