Skip to content

Commit 4398762

Browse files
github-automation-metabaseMetabase Docs botescherize
authored
[auto-build] docs-update-expressions -> master (#376)
* [auto] adding content to docs-update-expressions->master * Merge master, preferring changes from PR #376 --------- Co-authored-by: Metabase Docs bot <[email protected]> Co-authored-by: Bryan Maass <[email protected]>
1 parent 2d2e7f2 commit 4398762

File tree

7,474 files changed

+1137984
-22
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

7,474 files changed

+1137984
-22
lines changed

.bundle/config

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
BUNDLE_PATH: "/home/runner/work/docs.metabase.github.io/docs.metabase.github.io/vendor/bundle"
3+
BUNDLE_DEPLOYMENT: "true"
4+
BUNDLE_JOBS: "4"

.marketing_repo

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit f8831093f49ba696ee20800836b4a93973c59f74

_docs/master/questions/query-builder/expressions-list.md

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ For an introduction to expressions, check out the [overview of custom expression
6464
- [concat](./expressions/concat)
6565
- [contains](#contains)
6666
- [date](#date)
67+
- [datetime](#datetime)
6768
- [doesNotContain](#doesnotcontain)
6869
- [domain](#domain)
6970
- [endsWith](#endswith)
@@ -107,6 +108,8 @@ For an introduction to expressions, check out the [overview of custom expression
107108
- [quarterName](#quartername)
108109
- [relativeDateTime](#relativedatetime)
109110
- [second](#second)
111+
- [timeSpan](#timespan)
112+
- [today](#today)
110113
- [week](#week)
111114
- [weekday](#weekday)
112115
- [year](#year)
@@ -434,7 +437,7 @@ Example: `sqrt([Hypotenuse])`.
434437

435438
Databases that don't support `sqrt`: SQLite.
436439

437-
Related: [Power](#power).
440+
Related: [power](#power).
438441

439442
## String functions
440443

@@ -501,9 +504,12 @@ Related: [datetime](#datetime)
501504

502505
> Available on PostgreSQL, MySQL/MariaDB, BigQuery, Redshift, ClickHouse, and Snowflake
503506
504-
Converts a datetime string to a datetime.
507+
Converts a datetime string or bytes to a datetime.
505508

506-
Syntax: `datetime(column)`
509+
Syntax: `datetime(value, mode)`
510+
511+
- `value`: The string, bytes, or number to convert to a datetime.
512+
- `mode`: Optional. The mode indicating the format. One of: `"simple"`, `"iso"`, `"simpleBytes"`, `"isoBytes"`, `"unixSeconds"`, `"unixMilliseconds"`, `"unixMicroseconds"`, `"unixNanoseconds"`. Default is `"iso"`.
507513

508514
Example: `datetime("2025-03-20 12:45:04")`
509515

@@ -938,6 +944,16 @@ Syntax: `timeSpan(number, text)`
938944

939945
Example: `[Orders → Created At] + timeSpan(7, "day")` will return the date 7 days after the `Created At` date.
940946

947+
### today
948+
949+
Returns the current date (without time).
950+
951+
Syntax: `today()`
952+
953+
Example: `today()` would return the current date, such as `2025-05-04`.
954+
955+
Related: [now](#now).
956+
941957
### [week](./expressions/week)
942958

943959
Takes a datetime and returns the week as an integer.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<!DOCTYPE html><html lang="en-US"><head><meta charset="utf-8">
2+
<title>Redirecting…</title>
3+
<link rel="canonical" href="https://www.metabase.com/blog/analytics-in-1-hour">
4+
<script>location="https://www.metabase.com/blog/analytics-in-1-hour"</script>
5+
<meta http-equiv="refresh" content="0; url=https://www.metabase.com/blog/analytics-in-1-hour">
6+
<meta name="robots" content="noindex">
7+
</head><body><h1>Redirecting…</h1>
8+
<a href="https://www.metabase.com/blog/analytics-in-1-hour">Click here if you are not redirected.</a>
9+
10+
</body></html>

0 commit comments

Comments
 (0)