summaryrefslogtreecommitdiff
path: root/doc/sample/npc_test_time.txt
blob: c3d4eae1da1efb8f8b8fd7eb3a9a69932a2b7654 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
//===== Hercules Script =======================================
//= Sample: Time Test
//===== By: ==================================================
//= rAthena Dev Team
//===== Current Version: =====================================
//= 20151115
//===== Description: =========================================
//= Demonstrates time commands.
//============================================================

prontera,157,181,6	script	Time Sample	8W_SOLDIER,{
	mes "[Time Sample]";
	mes "       System Tick : " + gettimetick(0);
	mes "         Time Tick : " + gettimetick(1);
	mes "    GETTIME_SECOND : " + gettime(GETTIME_SECOND)     + " (Sec)";
	mes "    GETTIME_MINUTE : " + gettime(GETTIME_MINUTE)     + " (Min)";
	mes "      GETTIME_HOUR : " + gettime(GETTIME_HOUR)       + " (Hour)";
	mes "   GETTIME_WEEKDAY : " + gettime(GETTIME_WEEKDAY)    + " (WeekDay)";
	mes "GETTIME_DAYOFMONTH : " + gettime(GETTIME_DAYOFMONTH) + " (MonthDay)";
	mes "     GETTIME_MONTH : " + gettime(GETTIME_MONTH)      + " (Month)";
	mes "      GETTIME_YEAR : " + gettime(GETTIME_YEAR)       + " (Year)";
	mes " GETTIME_DAYOFYEAR : " + gettime(GETTIME_DAYOFYEAR)  + " (Day of Year)";
	mes "        gettimestr : " + gettimestr("%Y-%m/%d %H:%M:%S",19);
	close;
}