public class TimeFormat
extends com.google.gwt.core.client.JavaScriptObject
Modifier and Type | Class and Description |
---|---|
static class |
TimeFormat.Builder |
Modifier | Constructor and Description |
---|---|
protected |
TimeFormat() |
Modifier and Type | Method and Description |
---|---|
String |
apply(Date date)
Formats the specified date, returning the corresponding string.
|
String |
apply(com.google.gwt.core.client.JsDate date)
Formats the specified date, returning the corresponding string.
|
com.google.gwt.core.client.JsDate |
parse(String s)
Parse a string into a date.
|
public final com.google.gwt.core.client.JsDate parse(String s)
Parses the specified string, returning the corresponding date object. If the parsing fails, returns null. Unlike "natural language" date parsers (including JavaScript's built-in parse), this method is strict: if the specified string does not exactly match the associated format specifier, this method returns null.
s
- the string to parse.public final String apply(com.google.gwt.core.client.JsDate date)
date
- The date to format.Copyright © 2015 gwt-d3. All rights reserved.