Advertisement
Clem585

Untitled

Nov 30th, 2021
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.63 KB | None | 0 0
  1. #if($TIME.contains("p.m."))
  2. /**
  3. * TODO describe class
  4. *
  5. * @created $YEAR/$MONTH/$DAY #if ($TIME.substring(0,2).matches("1:"))
  6. 13:${MINUTE}
  7. #elseif ($TIME.substring(0,2).matches("2:"))
  8. 14:${MINUTE}
  9. #elseif ($TIME.substring(0,2).matches("3:"))
  10. 15:${MINUTE}
  11. #elseif ($TIME.substring(0,2).matches("4:"))
  12. 16:${MINUTE}
  13. #elseif ($TIME.substring(0,2).matches("5:"))
  14. 17:${MINUTE}
  15. #elseif ($TIME.substring(0,2).matches("6:"))
  16. 18:${MINUTE}
  17. #elseif ($TIME.substring(0,2).matches("7:"))
  18. 19:${MINUTE}
  19. #elseif ($TIME.substring(0,2).matches("8:"))
  20. 20:${MINUTE}
  21. #elseif ($TIME.substring(0,2).matches("9:"))
  22. 21:${MINUTE}
  23. #elseif ($TIME.substring(0,2).matches("10"))
  24. 22:${MINUTE}
  25. #elseif ($TIME.substring(0,2).matches("11"))
  26. 23:${MINUTE}
  27. #elseif ($TIME.substring(0,2).matches("12"))
  28. 12:${MINUTE}
  29. #end
  30. * @author clem585
  31. */
  32. #else
  33. /**
  34. * TODO describe class
  35. *
  36. * @created ${DAY}/${MONTH}/${YEAR} #if ($TIME.substring(0,2).matches("1:"))
  37. 01:${MINUTE}
  38. #elseif ($TIME.substring(0,2).matches("2:"))
  39. 02:${MINUTE}
  40. #elseif ($TIME.substring(0,2).matches("3:"))
  41. 03:${MINUTE}
  42. #elseif ($TIME.substring(0,2).matches("4:"))
  43. 04:${MINUTE}
  44. #elseif ($TIME.substring(0,2).matches("5:"))
  45. 05:${MINUTE}
  46. #elseif ($TIME.substring(0,2).matches("6:"))
  47. 06:${MINUTE}
  48. #elseif ($TIME.substring(0,2).matches("7:"))
  49. 07:${MINUTE}
  50. #elseif ($TIME.substring(0,2).matches("8:"))
  51. 08:${MINUTE}
  52. #elseif ($TIME.substring(0,2).matches("9:"))
  53. 09:${MINUTE}
  54. #elseif ($TIME.substring(0,2).matches("10"))
  55. 10:${MINUTE}
  56. #elseif ($TIME.substring(0,2).matches("11"))
  57. 11:${MINUTE}
  58. #elseif ($TIME.substring(0,2).matches("12"))
  59. 12:${MINUTE}
  60. #end
  61. * @author _____
  62. */
  63. $TIME
  64. #end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement