datetime
natural-language-conversion commands (see this Discord thread and subsequent comments)date humanize
: Formatting a datetime in a natural-language form. E.g.:
2025-04-02T16:00:00-04:00 | date humanize
# => in 3 days
into datetime
, which today automatically attempts to parse/interpret natural-language into a datetime
, but will simply return date now
if it fails. E.g. #14790:
"next Monday" | into datetime
# => Sun, 30 Mar 2025 09:44:05 -0400 (now)
into datetime
or moving it to a new command altogether. The question is what to name the flag/command and whether or not to rename date humanize
to match.{
foo: (date now | into int),
bar: (date now | into string),
baz: ignore
} | into datetime foo bar
record -> record
record -> datetime
update $col {}
can only deal with one column per invocationupdate cells --columns [...$cols] {}
pretty wordy$it
to $in
for where
condition$foo |= $in | bla
$in
populated corrrectly in mutable assignment operators?date from-human
seems acceptable
into datetime
date humanize
seems acceptableinto datetime
with record inputunion[record, datetime]
which would static check with both \ expect-record
and \ expect-datetime
but then collapse the wave function at run time/update cells
into
variants have, especially useful during data ingestionWay forward: any for now, better type system when we get to
record -> any
According to Rose we could have the specific ones as documentations after the any case.
Alternate route:
separate commands for record to scalar conversions like path join
/ url join
or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Do you want to remove this version name and description?
Syncing