Skip to content

Commit bf0d7ca

Browse files
author
linzhijun
committed
修改 README
1 parent c354ca7 commit bf0d7ca

File tree

5 files changed

+39
-0
lines changed

5 files changed

+39
-0
lines changed

README-EN.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -723,6 +723,7 @@ Note 3: The function name with ▲ means that it is affected by `Excel Index`,
723723
</td> <td></td>
724724
</tr>
725725
</table>
726+
726727
Note: The `UseLocalTime` attribute affects the conversion of `DateValue`/`Timestamp`. Set `true` to directly convert to local time.
727728

728729
#### Statistical function

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -719,6 +719,7 @@ bool转数值,假为`0`,真为`1`。bool转字符串,假为`FALSE`,真
719719
</td> <td></td>
720720
</tr>
721721
</table>
722+
722723
注:`UseLocalTime`属性影响 `DateValue`/`Timestamp` 转换,设置`true`,直接转成本地时间。
723724

724725
#### 统计函数

java/toolgood.algorithm/README-EN.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -707,8 +707,25 @@ Note 3: The function name with ▲ means that it is affected by `Excel Index`,
707707
<tr>
708708
<td>AddSeconds ★</td><td>AddSeconds(时间, 数值)<br>增加秒。</td> <td></td>
709709
</tr>
710+
<tr>
711+
<td>DateValue ★</td><td>DateValue(值, 数值)<br>转成时间<br>
712+
DateValue(文本/数值, 0) <br>解析,自动匹配到当前日期相近的日期<br>
713+
DateValue(文本, 1) <br>解析年月日文本<br>
714+
DateValue(数值, 2) <br>转成日期,Excel数值<br>
715+
DateValue(数值, 3) <br>转成日期,时间戳(毫秒)<br>
716+
DateValue(值数值, 4) <br>转成日期,时间戳(秒)<br>
717+
</td> <td></td>
718+
</tr>
719+
<tr>
720+
<td>Timestamp ★</td><td>DateValue(值[, 数值=0])<br>转成时间戳,默认为毫秒<br>
721+
Timestamp(时间, 0) <br>转成时间戳(毫秒)<br>
722+
Timestamp(时间, 1) <br>转成时间戳(秒)<br>
723+
</td> <td></td>
724+
</tr>
710725
</table>
711726

727+
Note: The `UseLocalTime` attribute affects the conversion of `DateValue`/`Timestamp`. Set `true` to directly convert to local time.
728+
712729

713730
#### Statistical function
714731
<table>

java/toolgood.algorithm/README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -705,8 +705,25 @@ public class Cylinder extends AlgorithmEngine {
705705
<tr>
706706
<td>AddSeconds ★</td><td>AddSeconds(时间, 数值)<br>增加秒。</td> <td></td>
707707
</tr>
708+
<tr>
709+
<td>DateValue ★</td><td>DateValue(值, 数值)<br>转成时间<br>
710+
DateValue(文本/数值, 0) <br>解析,自动匹配到当前日期相近的日期<br>
711+
DateValue(文本, 1) <br>解析年月日文本<br>
712+
DateValue(数值, 2) <br>转成日期,Excel数值<br>
713+
DateValue(数值, 3) <br>转成日期,时间戳(毫秒)<br>
714+
DateValue(值数值, 4) <br>转成日期,时间戳(秒)<br>
715+
</td> <td></td>
716+
</tr>
717+
<tr>
718+
<td>Timestamp ★</td><td>DateValue(值[, 数值=0])<br>转成时间戳,默认为毫秒<br>
719+
Timestamp(时间, 0) <br>转成时间戳(毫秒)<br>
720+
Timestamp(时间, 1) <br>转成时间戳(秒)<br>
721+
</td> <td></td>
722+
</tr>
708723
</table>
709724

725+
注:`UseLocalTime`属性影响 `DateValue`/`Timestamp` 转换,设置`true`,直接转成本地时间。
726+
710727
#### 统计函数
711728
<table>
712729
<tr><td>函数名</td><td>说明</td><td>示例</td></tr>

java/toolgood.algorithm/src/main/java/toolgood/algorithm/AlgorithmEngine.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ public class AlgorithmEngine {
3535
* 是否忽略大小写
3636
*/
3737
public final boolean IgnoreCase;
38+
/**
39+
* 使用本地时区
40+
*/
3841
public boolean UseLocalTime = false;
3942
private ProgContext _context;
4043
private final Map<String, Operand> _tempdict;

0 commit comments

Comments
 (0)