public class DateMacro extends Object implements Macro<String>
Parse the given value (arg1) using the format (arg2) into another format (arg3). If no second format (arg3) is provided, converts the given value (arg1) into epoch time. Returns a String with the value. Usage: @date("01/30/2017", "mm/dd/yyyy", "dd/mm/yyyy") @date("01/30/2017", "mm/dd/yyyy")
| Constructor and Description |
|---|
DateMacro() |
| Modifier and Type | Method and Description |
|---|---|
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.