public class DateMacro extends Object implements Macro<Unescaped<String>>
Parse the given value (arg1) using the format (arg2).
Returns a String with the value of the date parsed into DateTimeFormatter.ISO_LOCAL_DATE_TIME which
is the date format that Graql accepts.
Usage:
@date("01/30/2017", "mm/dd/yyyy")
| Constructor and Description |
|---|
DateMacro() |
| Modifier and Type | Method and Description |
|---|---|
Unescaped<String> |
apply(List<Object> values)
Apply the macro to the given values
|
String |
name()
The name of the macro
|
Copyright © 2017 Grakn Labs Ltd. All rights reserved.