@@ -117,9 +117,9 @@ public Map<String, Object> fieldsCypher5(
117
117
public Map <String , Object > fields (
118
118
final @ Name (value = "date" , description = "A string representation of a temporal value." ) String date ,
119
119
final @ Name (
120
- value = "pattern" ,
121
- defaultValue = DEFAULT_FORMAT ,
122
- description = "The format the given temporal is formatted as." ) String pattern ) {
120
+ value = "pattern" ,
121
+ defaultValue = DEFAULT_FORMAT ,
122
+ description = "The format the given temporal is formatted as." ) String pattern ) {
123
123
if (date == null ) {
124
124
return Util .map ();
125
125
}
@@ -324,9 +324,9 @@ public Long parse(
324
324
@ Name (value = "time" , description = "The datetime to convert." ) String time ,
325
325
@ Name (value = "unit" , defaultValue = "ms" , description = "The conversion unit." ) String unit ,
326
326
@ Name (value = "format" , defaultValue = DEFAULT_FORMAT , description = "The format the given datetime is in." )
327
- String format ,
327
+ String format ,
328
328
final @ Name (value = "timezone" , defaultValue = "" , description = "The timezone the given datetime is in." )
329
- String timezone ) {
329
+ String timezone ) {
330
330
Long value = StringUtils .isBlank (time ) ? null : parseOrThrow (time , getFormat (format , timezone ));
331
331
return value == null ? null : unit (unit ).convert (value , TimeUnit .MILLISECONDS );
332
332
}
@@ -369,18 +369,20 @@ public String convertFormatCypher5(
369
369
}
370
370
371
371
@ Deprecated
372
- @ UserFunction (value = "apoc.date.convertFormat" , deprecatedBy = "Cypher's temporal pattern constructors and format() function." )
372
+ @ UserFunction (
373
+ value = "apoc.date.convertFormat" ,
374
+ deprecatedBy = "Cypher's temporal pattern constructors and format() function." )
373
375
@ QueryLanguageScope (scope = QueryLanguage .CYPHER_25 )
374
376
@ Description ("Converts a `STRING` of one type of date format into a `STRING` of another type of date format." )
375
377
public String convertFormat (
376
378
@ Name (value = "temporal" , description = "A string representation of a temporal value." ) String input ,
377
379
@ Name (value = "currentFormat" , description = "The format the given temporal is formatted as." )
378
- String currentFormat ,
380
+ String currentFormat ,
379
381
@ Name (
380
- value = "convertTo" ,
381
- defaultValue = "yyyy-MM-dd" ,
382
- description = "The format to convert the given temporal value to." )
383
- String convertTo ) {
382
+ value = "convertTo" ,
383
+ defaultValue = "yyyy-MM-dd" ,
384
+ description = "The format to convert the given temporal value to." )
385
+ String convertTo ) {
384
386
if (input == null || input .isEmpty ()) {
385
387
return null ;
386
388
}
0 commit comments