mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-30 03:22:14 +00:00
Update date-time-functions.md
This commit is contained in:
parent
1cdf5012c9
commit
12f0a3feaf
@ -366,7 +366,7 @@ SELECT toDate('2016-12-27') AS date, toYearWeek(date) AS yearWeek0, toYearWeek(d
|
||||
└────────────┴───────────┴───────────┴───────────┘
|
||||
```
|
||||
|
||||
## date_trunc {#date_trunc}
|
||||
## date\_trunc {#date_trunc}
|
||||
|
||||
Truncates date and time data to the specified part of date.
|
||||
|
||||
@ -435,7 +435,7 @@ Result:
|
||||
|
||||
- [toStartOfInterval](#tostartofintervaltime-or-data-interval-x-unit-time-zone)
|
||||
|
||||
# now {#now}
|
||||
## now {#now}
|
||||
|
||||
Returns the current date and time.
|
||||
|
||||
@ -662,7 +662,7 @@ Result:
|
||||
|
||||
[Original article](https://clickhouse.tech/docs/en/query_language/functions/date_time_functions/) <!--hide-->
|
||||
|
||||
## FROM_UNIXTIME
|
||||
## FROM_UNIXTIME {#fromunixfime}
|
||||
|
||||
When there is only single argument of integer type, it act in the same way as `toDateTime` and return [DateTime](../../sql-reference/data-types/datetime.md).
|
||||
type.
|
||||
|
Loading…
Reference in New Issue
Block a user