> For the complete documentation index, see [llms.txt](https://noel77543.gitbook.io/ztool/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://noel77543.gitbook.io/ztool/tool/untitled-3.md).

# ZTimeTool

**PUBLIC METHOD**

```java
/***
* 目前時間是否在時段內
* beginTime  範圍開始時間
* endTime  範圍結束時間
*/
public boolean isRange(long beginTime, long endTime)

//-------------

/***
* 目前時間是否在指定時間之前
* targetTime</br>
*/
public boolean isBefore(long targetTime)

//-------------

/***
* 目前時間是否在指定時間之後
* targetTime
*/
public boolean isAfter(long targetTime) 

```
