Change Password

Please enter the password.
Please enter the password. Between 8-64 characters. Not identical to your email address. Contain at least 3 of uppercase, lowercase, numbers, and special characters (such as @*&#).
Please enter the password.
Submit

Change Nickname

Current Nickname:
Submit

Certifications

Certificate Issued at Valid until Serial No. File
Serial No. Valid until File

Not having one? Apply now! >>>

Invoice

ProductName CreateTime ID Price File
ProductName CreateTime ID Price File
v4.3
Search
    中文EN
    v4.3

      dateDiff()

      Function dateDiff() calculates the difference of two time values (end time minus start time) and returns that value (take the integer part).

      Arguments:

      • End time <datetime | timestamp | string>
      • Start time <datetime | timestamp | string>
      • Unit <string>, valid options: day, hour, minute, second

      Returns:

      • Time difference <number>

      Common Usage

      Example: Direct calculate

      uncollect ["2023-04-30 22:00:00", "2023-01-15 22:00:00"] as a
      uncollect ["2023-04-28 22:00:00", "2023-01-15 23:00:00"] as b
      uncollect ["day", "minute"] as c
      return table(a, b, c, dateDiff(a, b, c))
      

      |          a          |          b          |    c   | dateDiff(a, b, c) |
      |---------------------|---------------------|--------|-------------------|
      | 2023-04-30 22:00:00 | 2023-04-28 22:00:00 | day    | 2                 |
      | 2023-01-15 22:00:00 | 2023-01-15 23:00:00 | minute | -60               |
      

      Example: Multiply and calculate

      uncollect ["2023-04-30 22:00:00", "2023-01-15 22:00:00"] as a
      uncollect ["2023-04-28 22:00:00", "2023-01-15 23:00:00"] as b
      uncollect ["day", "minute"] as c
      with dateDiff(a, b, c) as d
      return table(a, b, c, d)
      

      |          a          |          b          |    c   |    d    |
      |---------------------|---------------------|--------|---------|
      | 2023-04-30 22:00:00 | 2023-04-28 22:00:00 | day    | 2       |
      | 2023-04-30 22:00:00 | 2023-04-28 22:00:00 | minute | 2880    |
      | 2023-04-30 22:00:00 | 2023-01-15 23:00:00 | day    | 104     |
      | 2023-04-30 22:00:00 | 2023-01-15 23:00:00 | minute | 151140  |
      | 2023-01-15 22:00:00 | 2023-04-28 22:00:00 | day    | -103    |
      | 2023-01-15 22:00:00 | 2023-04-28 22:00:00 | minute | -148320 |
      | 2023-01-15 22:00:00 | 2023-01-15 23:00:00 | day    | 0       |
      | 2023-01-15 22:00:00 | 2023-01-15 23:00:00 | minute | -60     |
      
      Please complete the following information to download this book
      *
      公司名称不能为空
      *
      公司邮箱必须填写
      *
      你的名字必须填写
      *
      你的电话必须填写
      *
      你的电话必须填写