Author: nadiramra
Date: Thu Jun 3 22:10:38 2010
New Revision: 951181
URL: http://svn.apache.org/viewvc?rev=951181&view=rev
Log:
AXIS2C-1384 axutil_date_time_get_date() should be axutil_date_time_get_day()
Modified:
axis/axis2/c/core/trunk/util/include/axutil_date_time.h
axis/axis2/c/core/trunk/util/src/date_time.c
axis/axis2/c/core/trunk/util/src/rand.c
axis/axis2/c/core/trunk/util/test/date_time/date_time_test.c
Modified: axis/axis2/c/core/trunk/util/include/axutil_date_time.h
URL:
http://svn.apache.org/viewvc/axis/axis2/c/core/trunk/util/include/axutil_date_time.h?rev=951181&r1=951180&r2=951181&view=diff
==============================================================================
--- axis/axis2/c/core/trunk/util/include/axutil_date_time.h (original)
+++ axis/axis2/c/core/trunk/util/include/axutil_date_time.h Thu Jun 3 22:10:38
2010
@@ -216,13 +216,13 @@ extern "C"
const axutil_env_t * env);
/**
- * retrieve the date of the date time
+ * retrieve the day of the date time
* @param date_time represet the type object
* @param env pointer to environment struct. MUST NOT be NULL
- * @return date as an integer
+ * @return day as an integer
*/
AXIS2_EXTERN int AXIS2_CALL
- axutil_date_time_get_date(
+ axutil_date_time_get_day(
axutil_date_time_t * date_time,
const axutil_env_t * env);
Modified: axis/axis2/c/core/trunk/util/src/date_time.c
URL:
http://svn.apache.org/viewvc/axis/axis2/c/core/trunk/util/src/date_time.c?rev=951181&r1=951180&r2=951181&view=diff
==============================================================================
--- axis/axis2/c/core/trunk/util/src/date_time.c (original)
+++ axis/axis2/c/core/trunk/util/src/date_time.c Thu Jun 3 22:10:38 2010
@@ -731,6 +731,7 @@ axutil_date_time_get_month(
return (date_time->mon + 1);
}
+/* Deprecated...should have been get_day, remove in 1.8 */
AXIS2_EXTERN int AXIS2_CALL
axutil_date_time_get_date(
axutil_date_time_t *date_time,
@@ -738,6 +739,13 @@ axutil_date_time_get_date(
{
return (date_time->day);
}
+AXIS2_EXTERN int AXIS2_CALL
+axutil_date_time_get_day(
+ axutil_date_time_t *date_time,
+ const axutil_env_t *env)
+{
+ return (date_time->day);
+}
AXIS2_EXTERN int AXIS2_CALL
axutil_date_time_get_hour(
Modified: axis/axis2/c/core/trunk/util/src/rand.c
URL:
http://svn.apache.org/viewvc/axis/axis2/c/core/trunk/util/src/rand.c?rev=951181&r1=951180&r2=951181&view=diff
==============================================================================
--- axis/axis2/c/core/trunk/util/src/rand.c (original)
+++ axis/axis2/c/core/trunk/util/src/rand.c Thu Jun 3 22:10:38 2010
@@ -57,7 +57,7 @@ axutil_rand_get_seed_value_based_on_time
axutil_date_time_t *date = axutil_date_time_create(env);
unsigned int rand_var = axutil_date_time_get_year(date, env);
rand_var += axutil_date_time_get_month(date, env);
- rand_var += axutil_date_time_get_date(date, env);
+ rand_var += axutil_date_time_get_day(date, env);
rand_var += axutil_date_time_get_hour(date, env);
rand_var += axutil_date_time_get_minute(date, env);
rand_var += axutil_date_time_get_second(date, env);
Modified: axis/axis2/c/core/trunk/util/test/date_time/date_time_test.c
URL:
http://svn.apache.org/viewvc/axis/axis2/c/core/trunk/util/test/date_time/date_time_test.c?rev=951181&r1=951180&r2=951181&view=diff
==============================================================================
--- axis/axis2/c/core/trunk/util/test/date_time/date_time_test.c (original)
+++ axis/axis2/c/core/trunk/util/test/date_time/date_time_test.c Thu Jun 3
22:10:38 2010
@@ -99,7 +99,7 @@ axis2_status_t test_date_time(axutil_env
}
year = axutil_date_time_get_year(date_time,env);
month=axutil_date_time_get_month(date_time,env);
- date = axutil_date_time_get_date(date_time,env);
+ date = axutil_date_time_get_day(date_time,env);
hour = axutil_date_time_get_hour(date_time,env);
min = axutil_date_time_get_minute(date_time,env);
sec = axutil_date_time_get_second(date_time,env);