yuhsing

Untitled

Nov 18th, 2012
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.55 KB | None | 0 0
  1. // from AnnieRuru
  2. // http://www.eathena.ws/board/index.php?s=&showtopic=181741&view=findpost&p=1329705
  3.  
  4.  
  5. prontera.gat,157,181,6 script Time Sample 105,{
  6. mes "System Tick : "+ gettimetick(0);
  7. mes " Time Tick : "+ gettimetick(1);
  8. mes " UNIX Tick : "+ gettimetick(2);
  9. mes " GetTime(1) : "+ gettime(1) +" (Sec)";
  10. mes " GetTime(2) : "+ gettime(2) +" (Min)";
  11. mes " GetTime(3) : "+ gettime(3) +" (Hour)";
  12. mes " GetTime(4) : "+ gettime(4) +" (WeekDay)"; // (day in the week 0~6)
  13. mes " GetTime(5) : "+ gettime(5) +" (MonthDay)"; // (Day of the month)
  14. mes " GetTime(6) : "+ gettime(6) +" (Month)";
  15. mes " GetTime(7) : "+ gettime(7) +" (Year)";
  16. mes " GetTime(8) : "+ gettime(8) +" (No.day in year)";
  17. mes " GetTimeStr : %Y-%m/%d %H:%M:%S,40";
  18. mes gettimestr("%Y-%m/%d %H:%M:%S",40); // 2007-07/27 16:59:22
  19. next;
  20. mes "%a : "+ gettimestr("%a",19); // Tue (short week)
  21. mes "%A : "+ gettimestr("%A",19); // Tuesday (long week)
  22. mes "%b : "+ gettimestr("%b",19); // Jul (short month)
  23. mes "%B : "+ gettimestr("%B",19); // July (long month)
  24. mes "%c : "+ gettimestr("%c",19); // Tue Jul 24 16:30
  25. mes "%C : "+ gettimestr("%C",19); // 20 (year ->20<-07)
  26. mes "%d : "+ gettimestr("%d",19); // 24 (day 01~31)
  27. mes "%D : "+ gettimestr("%D",19); // 07/24/07 (month/day/year)
  28. mes "%e : "+ gettimestr("%e",19); // 24 (day 1~31)
  29. mes "%F : "+ gettimestr("%F",19); // 2007/07/24 (year/month/day)
  30. next;
  31. mes "%g : "+ gettimestr("%g",19); // 07 (year 00~99)
  32. mes "%G : "+ gettimestr("%G",19); // 2007 (year)
  33. mes "%h : "+ gettimestr("%h",19); // Jul (short month) (== %b)
  34. mes "%H : "+ gettimestr("%H",19); // 16 (hour 00~23)
  35. mes "%I : "+ gettimestr("%I",19); // 04 (hour 01~12)
  36. mes "%j : "+ gettimestr("%j",19); // 205 (day of the year)
  37. mes "%k : "+ gettimestr("%k",19); // 16 (hour 0~23)
  38. mes "%l : "+ gettimestr("%l",19); // 4 (hour 1~12)
  39. mes "%m : "+ gettimestr("%m",19); // 07 (month 01~12)
  40. mes "%M : "+ gettimestr("%M",19); // 30 (minute 00~59)
  41. next;
  42. mes "%p : "+ gettimestr("%p",19); // PM ( AM / PM )
  43. // mes "%p : "+ gettimestr("%P",19); // pm ( am / pm ) <-- not supported !!
  44. mes "%r : "+ gettimestr("%r",19); // 4:30:00 PM (== %I:%M:%S %p)
  45. mes "%R : "+ gettimestr("%R",19); // 16:30 (==%H:%M)
  46. mes "%S : "+ gettimestr("%S",19); // 57 (second 00~59)
  47. mes "%T : "+ gettimestr("%T",19); // 16:30:00 (hour:minute:sec)
  48. mes "%u : "+ gettimestr("%u",19); // 2 (number of the week 1~7, Sun = 7)
  49. mes "%U : "+ gettimestr("%U",19); // 29 (range 00 through 53), starting with the first Sunday as the first day of the first week. Days preceding the first Sunday in the year are considered to be in week 00.
  50. next;
  51. mes "%V : "+ gettimestr("%V",19); // 30 (range 01 through 53). ISO weeks start with Monday and end with Sunday. Week 01 of a year is the first week which has the majority of its days in that year; this is equivalent to the week containing the year's first Thursday, and it is also equivalent to the week containing January 4. Week 01 of a year can contain days from the previous year. The week before week 01 of a year is the last week (52 or 53) of the previous year even if it contains days from the new year.
  52. mes "%w : "+ gettimestr("%w",19); // 2 (number of the week 0~6, Sun = 0)
  53. mes "%W : "+ gettimestr("%W",19); // 30 (The week number of the current year as a decimal number (range 00 through 53), starting with the first Monday as the first day of the first week. All days preceding the first Monday in the year are considered to be in week 00.)
  54. mes "%x : "+ gettimestr("%x",19); // 07/24/07
  55. mes "%X : "+ gettimestr("%X",19); // 16:40:23
  56. close;
  57. }
Advertisement
Add Comment
Please, Sign In to add comment