You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: _yaml/data-functions.yml
+6-9
Original file line number
Diff line number
Diff line change
@@ -234,11 +234,14 @@ df_number:
234
234
returns: Boolean
235
235
description: Converts a number to a boolean. <code>0</code> converts to <code>false</code>. All other values convert to <code>true</code>.
236
236
- funcName: toDateTime
237
+
args:
238
+
- argName: fmt
239
+
optional: true
240
+
longName: Format
241
+
type: String enum
242
+
description: Can be <code>ms</code> (milliseconds), <code>s</code> (seconds), or <code>excel</code> (Excel 1900). Defaults to milliseconds.
237
243
returns: Date
238
244
description: Converts a number to a <a href="https://docs.n8n.io/code/cookbook/luxon/">Luxon date object</a>.
239
-
- funcName: toInt
240
-
returns: Integer
241
-
description: Convert a number to an integer by rounding up or down. <code>.5</code> and above rounds up.
242
245
df_date:
243
246
- funcName: beginningOf
244
247
args:
@@ -346,12 +349,6 @@ df_date:
346
349
- funcName: toDateTime
347
350
returns: Date
348
351
description: Converts a JavaScript date to a <a href="https://docs.n8n.io/code/cookbook/luxon/">Luxon date object</a>.
349
-
- funcName: toFloat
350
-
returns: Number
351
-
description: See <a href="#date-toInt">toInt</a>.
352
-
- funcName: toInt
353
-
returns: Number
354
-
description: Gets the milliseconds for the current DateTime and returns it as a number. For example, <code>DateTime.fromISO('2024-01-01T00:00:00.000Z').toInt()</code> returns <code>1704067200000</code>
0 commit comments