MCPcopy Create free account
hub / github.com/BaseXdb/basex / get

Method get

basex-core/src/main/java/org/basex/query/value/item/Dtm.java:116–122  ·  view source on GitHub ↗

Returns a dateTime item for the specified milliseconds. @param ms milliseconds since January 1, 1970, 00:00:00 GMT @return dateTime instance

(final long ms)

Source from the content-addressed store, hash-verified

114 * @return dateTime instance
115 */
116 public static Dtm get(final long ms) {
117 try {
118 return new Dtm(Token.token(DateTime.format(new Date(ms))), BasicType.DATE_TIME_STAMP, null);
119 } catch(final QueryException ex) {
120 throw Util.notExpected(ex);
121 }
122 }
123
124 @Override
125 public boolean comparable(final Item item) {

Callers 9

createdMethod · 0.95
accessedMethod · 0.95
itemMethod · 0.95
dateTimeMethod · 0.95
itemMethod · 0.95
evalMethod · 0.95
entryMethod · 0.95
getMethod · 0.95
DtmClass · 0.95

Calls 3

tokenMethod · 0.95
formatMethod · 0.95
notExpectedMethod · 0.95

Tested by

no test coverage detected