]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add switch_time_exp_gmt_get for mishehu
authorMichael Jerris <mike@jerris.com>
Sat, 6 Jan 2007 22:57:31 +0000 (22:57 +0000)
committerMichael Jerris <mike@jerris.com>
Sat, 6 Jan 2007 22:57:31 +0000 (22:57 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3923 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/include/switch_apr.h

index 98e8f2d8206132963d4612d47c9a84bb752bf402..a833436a28bec8d8a8bb88b46b5cffffd1b01d58 100644 (file)
@@ -1084,6 +1084,15 @@ typedef apr_time_exp_t switch_time_exp_t;
 DoxyDefine(switch_time_t switch_time_now(void);)
 #define switch_time_now apr_time_now
 
+/**
+ * Convert time value from human readable format to a numeric apr_time_t that
+ * always represents GMT
+ * @param result the resulting imploded time
+ * @param input the input exploded time
+ */
+DoxyDefine(switch_status_t switch_time_exp_gmt_get(switch_time_t *result, switch_time_exp_t *input);)
+#define switch_time_exp_gmt_get apr_time_exp_gmt_get
+
 /**
  * formats the exploded time according to the format specified
  * @param s string to write to