npc_test_time.txt 1.2 KB

1234567891011121314151617181920212223242526
  1. //===== rAthena Script =======================================
  2. //= Sample: Time Test
  3. //===== By: ==================================================
  4. //= rAthena Dev Team
  5. //===== Last Updated: ========================================
  6. //= 20161206
  7. //===== Description: =========================================
  8. //= Demonstrates time commands.
  9. //============================================================
  10. prontera,157,181,6 script Time Sample 105,{
  11. mes "[Time Sample]";
  12. mes "System Tick : " + gettimetick(0);
  13. mes " Time Tick : " + gettimetick(1);
  14. mes " Unix Tick : " + gettimetick(2);
  15. mes " GetTime(DT_SECOND) : " + gettime(DT_SECOND) + " (Sec)";
  16. mes " GetTime(DT_MINUTE) : " + gettime(DT_MINUTE) + " (Min)";
  17. mes " GetTime(DT_HOUR) : " + gettime(DT_HOUR) + " (Hour)";
  18. mes " GetTime(DT_DAYOFWEEK) : " + gettime(DT_DAYOFWEEK) + " (Day of week)";
  19. mes " GetTime(DT_DAYOFMONTH) : " + gettime(DT_DAYOFMONTH) + " (Day of month)";
  20. mes " GetTime(DT_MONTH) : " + gettime(DT_MONTH) + " (Month)";
  21. mes " GetTime(DT_YEAR) : " + gettime(DT_YEAR) + " (Year)";
  22. mes " GetTime(DT_DAYOFYEAR) : " + gettime(DT_DAYOFYEAR) + " (Day of year)";
  23. mes " GetTimeStr : " + gettimestr("%Y-%m/%d %H:%M:%S",19);
  24. close;
  25. }