new function for xlsx export

This commit is contained in:
Ottmar Gobrecht 2019-12-31 22:30:45 +01:00
parent 1f79f4fafd
commit 9975480946
3 changed files with 34 additions and 0 deletions

View File

@ -567,6 +567,10 @@ PROCEDURE util_setup_dbms_metadata (
PROCEDURE util_ensure_unique_file_names (p_export_files IN OUT tab_export_files);
FUNCTION util_to_xlsx_datetime (
p_date IN DATE)
RETURN;
--------------------------------------------------------------------------------------------------------------------------------
-- The following tools are working on global private package variables
--------------------------------------------------------------------------------------------------------------------------------
@ -766,6 +770,9 @@ PROCEDURE util_setup_dbms_metadata (
p_constraints_as_alter IN BOOLEAN DEFAULT false,
p_emit_schema IN BOOLEAN DEFAULT false);
FUNCTION util_to_xlsx_datetime (
p_date IN DATE)
RETURN NUMBER;
--------------------------------------------------------------------------------------------------------------------------------
-- The following tools are working on the global private package variables g_clob, g_clob_varchar_cache, g_runlog and g_queries
@ -1225,6 +1232,16 @@ END util_ensure_unique_file_names;
--------------------------------------------------------------------------------------------------------------------------------
-- https://community.oracle.com/message/1638237
FUNCTION util_to_xlsx_datetime (
p_date IN DATE)
RETURN NUMBER IS
BEGIN
return p_date - date '1900-01-01' + 2;
END;
--------------------------------------------------------------------------------------------------------------------------------
PROCEDURE util_log_init (p_module IN VARCHAR2) IS
BEGIN
g_runlog.module := substr(p_module, 1, c_app_info_length);

View File

@ -150,6 +150,9 @@ PROCEDURE util_setup_dbms_metadata (
p_constraints_as_alter IN BOOLEAN DEFAULT false,
p_emit_schema IN BOOLEAN DEFAULT false);
FUNCTION util_to_xlsx_datetime (
p_date IN DATE)
RETURN NUMBER;
--------------------------------------------------------------------------------------------------------------------------------
-- The following tools are working on the global private package variables g_clob, g_clob_varchar_cache, g_runlog and g_queries
@ -609,6 +612,16 @@ END util_ensure_unique_file_names;
--------------------------------------------------------------------------------------------------------------------------------
-- https://community.oracle.com/message/1638237
FUNCTION util_to_xlsx_datetime (
p_date IN DATE)
RETURN NUMBER IS
BEGIN
return p_date - date '1900-01-01' + 2;
END;
--------------------------------------------------------------------------------------------------------------------------------
PROCEDURE util_log_init (p_module IN VARCHAR2) IS
BEGIN
g_runlog.module := substr(p_module, 1, c_app_info_length);

View File

@ -529,6 +529,10 @@ PROCEDURE util_setup_dbms_metadata (
PROCEDURE util_ensure_unique_file_names (p_export_files IN OUT tab_export_files);
FUNCTION util_to_xlsx_datetime (
p_date IN DATE)
RETURN;
--------------------------------------------------------------------------------------------------------------------------------
-- The following tools are working on global private package variables
--------------------------------------------------------------------------------------------------------------------------------