@@ -19,18 +19,18 @@ GetCurrentDateTime ()
19
19
20
20
## Return types
21
21
22
- Returns the current UTC date and time ISO 8601 string value in the format ` YYYY-MM-DDThh:mm:ss.sssZ ` where:
22
+ Returns the current UTC date and time ISO 8601 string value in the format ` YYYY-MM-DDThh:mm:ss.fffffffZ ` where:
23
23
24
24
|||
25
25
| -| -|
26
26
| YYYY| four-digit year|
27
27
| MM| two-digit month (01 = January, etc.)|
28
28
| DD| two-digit day of month (01 through 31)|
29
29
| T| signifier for beginning of time elements|
30
- | hh| two digit hour (00 through 23)|
31
- | mm| two digit minutes (00 through 59)|
32
- | ss| two digit seconds (00 through 59)|
33
- | .sss | three digits of decimal fractions of a second |
30
+ | hh| two- digit hour (00 through 23)|
31
+ | mm| two- digit minutes (00 through 59)|
32
+ | ss| two- digit seconds (00 through 59)|
33
+ | .fffffff | seven-digit fractional seconds |
34
34
| Z| UTC (Coordinated Universal Time) designator||
35
35
36
36
For more information on the ISO 8601 format, see [ ISO_8601] ( https://en.wikipedia.org/wiki/ISO_8601 )
@@ -41,6 +41,8 @@ GetCurrentDateTime ()
41
41
42
42
The result returned is UTC.
43
43
44
+ Precision is 7 digits, with an accuracy of 100 nanoseconds.
45
+
44
46
## Examples
45
47
46
48
The following example shows how to get the current UTC Date Time using the GetCurrentDateTime() built-in function.
@@ -53,7 +55,7 @@ SELECT GetCurrentDateTime() AS currentUtcDateTime
53
55
54
56
``` json
55
57
[{
56
- "currentUtcDateTime" : " 2019-05-03T20:36:17.784Z "
58
+ "currentUtcDateTime" : " 2019-05-03T20:36:17.1234567Z "
57
59
}]
58
60
```
59
61
0 commit comments