block_date.json 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. [
  2. {
  3. "name": "date.new",
  4. "contents": [
  5. "新建一个日期对象",
  6. {"type": "input","default": ""}
  7. ],
  8. "class": "date.New", "extend": "$Expression"
  9. },
  10. {
  11. "name": "date.parse",
  12. "contents": [
  13. "解析日期",
  14. {"type": "inputMortise","default": "","tenonTypes": []},
  15. ],
  16. "class": "date.Parse", "extend": "$Expression"
  17. },
  18. {
  19. "name": "date.parseDate",
  20. "contents": [
  21. "为对象",
  22. {"type": "inputMortise","default": "","tenonTypes": []},
  23. "解析日期",
  24. {"type": "inputMortise","default": "","tenonTypes": []},
  25. ],
  26. "class": "date.ParseDate", "extend": "$Expression"
  27. },
  28. {
  29. "name": "date.get",
  30. "contents": [
  31. "日期",
  32. {"type": "inputMortise","default": "","tenonTypes": []},
  33. "的",
  34. {"type": "select", "options": [
  35. "周几|Day",
  36. "年份|FullYear",
  37. "月份|Month",
  38. "日|Date",
  39. "小时|Hours",
  40. "分|Minutes",
  41. "秒|Seconds",
  42. "毫秒|Milliseconds",
  43. "几周|Week",
  44. "时间数|Time",
  45. "时区|Timezone",
  46. "时区差(分)|TimezoneOffset"
  47. ], "default": "Hours"}
  48. ],
  49. "class": "date.Get", "extend": "$Expression"
  50. },
  51. {
  52. "name": "date.set",
  53. "contents": [
  54. "设置日期",
  55. {"type": "inputMortise","default": "","tenonTypes": []},
  56. "的",
  57. {"type": "select", "options": [
  58. "周几|Day",
  59. "年份|FullYear",
  60. "月份|Month",
  61. "日|Date",
  62. "小时|Hours",
  63. "分|Minutes",
  64. "秒|Seconds",
  65. "毫秒|Milliseconds",
  66. "时间数|Time"
  67. ], "default": "Hours"},
  68. "为",
  69. {"type": "inputMortise","default": "","tenonTypes": []}
  70. ],
  71. "class": "date.Set", "extend": "$Operation"
  72. },
  73. {
  74. "name": "date.clone",
  75. "contents": [
  76. "克隆日期",
  77. {"type": "inputMortise","default": "","tenonTypes": []},
  78. ],
  79. "class": "date.Clone", "extend": "$Expression"
  80. },
  81. {
  82. "name": "date.increment",
  83. "contents": [
  84. "为时间",
  85. {"type": "inputMortise","default": "","tenonTypes": []},
  86. "增加",
  87. {"type": "inputMortise","default": "","tenonTypes": []},
  88. {"type": "select", "options": [
  89. "年|year",
  90. "月|month",
  91. "日|day",
  92. "时|hour",
  93. "分|minute",
  94. "秒|second",
  95. "毫秒|ms"
  96. ], "default": "hour"}
  97. ],
  98. "class": "date.Increment", "extend": "$Operation"
  99. },
  100. {
  101. "name": "date.decrement",
  102. "contents": [
  103. "为时间",
  104. {"type": "inputMortise","default": "","tenonTypes": []},
  105. "减少",
  106. {"type": "inputMortise","default": "","tenonTypes": []},
  107. {"type": "select", "options": [
  108. "年|year",
  109. "月|month",
  110. "日|day",
  111. "时|hour",
  112. "分|minute",
  113. "秒|second",
  114. "毫秒|ms"
  115. ], "default": "hour"}
  116. ],
  117. "class": "date.Decrement", "extend": "$Operation"
  118. },
  119. {
  120. "name": "date.isLeapYear",
  121. "contents": [
  122. "日期",
  123. {"type": "inputMortise","default": "","tenonTypes": []},
  124. "是否是闰年"
  125. ],
  126. "class": "date.LsLeapYear", "extend": "$Expression"
  127. },
  128. {
  129. "name": "date.clearTime",
  130. "contents": [
  131. "日期",
  132. {"type": "inputMortise","default": "","tenonTypes": []},
  133. "去除时间部分"
  134. ],
  135. "class": "date.ClearTime", "extend": "$Expression"
  136. },
  137. {
  138. "name": "date.clearTime",
  139. "contents": [
  140. "日期",
  141. {"type": "inputMortise","default": "","tenonTypes": []},
  142. "与日期",
  143. {"type": "inputMortise","default": "","tenonTypes": []},
  144. "的差距,单位",
  145. {"type": "select", "options": [
  146. "年|year",
  147. "月|month",
  148. "日|day",
  149. "时|hour",
  150. "分|minute",
  151. "秒|second",
  152. "毫秒|ms"
  153. ], "default": "hour"}
  154. ],
  155. "class": "date.ClearTime", "extend": "$Expression"
  156. }
  157. ]