summaryrefslogtreecommitdiff
path: root/contrib/dateformat/to-from_char.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/dateformat/to-from_char.h')
-rw-r--r--contrib/dateformat/to-from_char.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/contrib/dateformat/to-from_char.h b/contrib/dateformat/to-from_char.h
new file mode 100644
index 00000000000..e96e0a3797e
--- /dev/null
+++ b/contrib/dateformat/to-from_char.h
@@ -0,0 +1,18 @@
+
+#ifndef TO_FROM_CHAR_H
+#define TO_FROM_CHAR_H
+
+/*------
+ * For postgres
+ *------
+ */
+extern text *to_char(DateTime *dt, text *format);
+extern DateTime *from_char(text *date_str, text *format);
+extern DateADT to_date(text *date_str, text *format);
+
+extern text *ordinal(int4 num, text *type);
+
+extern char *months_full[]; /* full months name */
+extern char *rm_months[]; /* roman numeral of months */
+
+#endif \ No newline at end of file