summaryrefslogtreecommitdiff
path: root/src/map/date.c
diff options
context:
space:
mode:
authorbrianluau <brianluau@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-12-05 02:53:33 +0000
committerbrianluau <brianluau@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-12-05 02:53:33 +0000
commit60a426c0742b3e7d8c5b557c7578df6eeeea377b (patch)
tree5d01f9ccc2798309f9b13f07c0096ed97c6a85c8 /src/map/date.c
parent621db2441f69736a6c8f10d26bf966d5414fac74 (diff)
downloadhercules-60a426c0742b3e7d8c5b557c7578df6eeeea377b.tar.gz
hercules-60a426c0742b3e7d8c5b557c7578df6eeeea377b.tar.bz2
hercules-60a426c0742b3e7d8c5b557c7578df6eeeea377b.tar.xz
hercules-60a426c0742b3e7d8c5b557c7578df6eeeea377b.zip
- Undid r16968: SVN Replaced with source:/trunk/src/@16966 (tid:74924).
[16969:16991/trunk/src/] will be re-committed in the next 24 hours. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16992 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/date.c')
-rw-r--r--src/map/date.c66
1 files changed, 33 insertions, 33 deletions
diff --git a/src/map/date.c b/src/map/date.c
index 255fabf18..9f2bc4bee 100644
--- a/src/map/date.c
+++ b/src/map/date.c
@@ -6,66 +6,66 @@
int date_get_year(void)
{
- time_t t;
- struct tm *lt;
- t = time(NULL);
- lt = localtime(&t);
- return lt->tm_year+1900;
+ time_t t;
+ struct tm * lt;
+ t = time(NULL);
+ lt = localtime(&t);
+ return lt->tm_year+1900;
}
int date_get_month(void)
{
- time_t t;
- struct tm *lt;
- t = time(NULL);
- lt = localtime(&t);
- return lt->tm_mon+1;
+ time_t t;
+ struct tm * lt;
+ t = time(NULL);
+ lt = localtime(&t);
+ return lt->tm_mon+1;
}
int date_get_day(void)
{
- time_t t;
- struct tm *lt;
- t = time(NULL);
- lt = localtime(&t);
- return lt->tm_mday;
+ time_t t;
+ struct tm * lt;
+ t = time(NULL);
+ lt = localtime(&t);
+ return lt->tm_mday;
}
int date_get_hour(void)
{
- time_t t;
- struct tm *lt;
- t = time(NULL);
- lt = localtime(&t);
- return lt->tm_hour;
+ time_t t;
+ struct tm * lt;
+ t = time(NULL);
+ lt = localtime(&t);
+ return lt->tm_hour;
}
int date_get_min(void)
{
- time_t t;
- struct tm *lt;
- t = time(NULL);
- lt = localtime(&t);
- return lt->tm_min;
+ time_t t;
+ struct tm * lt;
+ t = time(NULL);
+ lt = localtime(&t);
+ return lt->tm_min;
}
int date_get_sec(void)
{
- time_t t;
- struct tm *lt;
- t = time(NULL);
- lt = localtime(&t);
- return lt->tm_sec;
+ time_t t;
+ struct tm * lt;
+ t = time(NULL);
+ lt = localtime(&t);
+ return lt->tm_sec;
}
int is_day_of_sun(void)
{
- return date_get_day()%2 == 0;
+ return date_get_day()%2 == 0;
}
int is_day_of_moon(void)
{
- return date_get_day()%2 == 1;
+ return date_get_day()%2 == 1;
}
int is_day_of_star(void)
{
- return date_get_day()%5 == 0;
+ return date_get_day()%5 == 0;
}