From 1e820b3d9db58b6d72ad3ba227cd5e401893c72a Mon Sep 17 00:00:00 2001 From: Aitor Cereceto Date: Fri, 12 Mar 2021 08:12:43 +0100 Subject: [46188] fix: get unix from datetime when empty dict --- doc/classes/OS.xml | 1 + 1 file changed, 1 insertion(+) (limited to 'doc/classes') diff --git a/doc/classes/OS.xml b/doc/classes/OS.xml index 057a2b8d1a..548147beab 100644 --- a/doc/classes/OS.xml +++ b/doc/classes/OS.xml @@ -367,6 +367,7 @@ Gets an epoch time value from a dictionary of time values. [code]datetime[/code] must be populated with the following keys: [code]year[/code], [code]month[/code], [code]day[/code], [code]hour[/code], [code]minute[/code], [code]second[/code]. + If the dictionary is empty [code]0[/code] is returned. You can pass the output from [method get_datetime_from_unix_time] directly into this function. Daylight Savings Time ([code]dst[/code]), if present, is ignored. -- cgit v1.2.3