Benjamin Tan
0f605b8aae
templates: Timestamp: add after
, before
methods
...
This allows for more fine-grained control of timestamp formatting, for
example:
```
[template-aliases]
'format_timestamp(timestamp)' = '''
if(timestamp.before("1 week ago"),
timestamp.format("%b %d %Y %H:%M"),
timestamp.ago()
)
'''
```
Closes #3782 .
2024-10-16 13:46:06 +08:00
..
2024-09-05 08:56:04 -07:00
2024-10-16 11:26:59 +08:00
2024-10-15 16:31:32 +03:00
2024-09-24 10:52:06 +02:00
2024-08-22 14:52:54 -04:00
2024-09-11 18:54:45 +02:00
2024-09-17 18:24:26 +02:00
2024-10-15 16:31:32 +03:00
2024-09-11 18:54:45 +02:00
2024-10-07 20:37:14 -04:00
2024-09-11 18:54:45 +02:00
2024-07-16 12:54:24 +02:00
2024-09-22 12:40:46 +02:00
2024-10-16 13:46:06 +08:00
2024-10-08 13:21:03 +09:00
2024-10-04 22:29:13 +02:00
2024-07-03 20:26:30 -04:00
2024-10-08 13:21:03 +09:00
2024-09-24 07:17:33 +09:00
2024-10-06 09:45:27 +09:00
2024-09-24 09:30:28 +02:00
2024-10-13 20:06:03 -07:00
2024-07-16 12:54:24 +02:00
2024-09-15 14:11:33 +02:00
2024-09-22 15:02:21 +01:00
2024-10-04 20:52:59 +09:00
2024-09-09 07:49:55 -07:00
2024-09-11 18:54:45 +02:00
2024-06-15 20:30:40 -07:00
2024-10-14 20:01:08 +02:00
2024-10-13 20:06:03 -07:00
2024-10-13 20:06:03 -07:00
2024-10-13 20:06:03 -07:00
2024-09-11 18:54:45 +02:00
2024-09-15 07:06:56 +09:00
2024-09-15 07:06:56 +09:00
2024-09-11 18:54:45 +02:00
2024-05-17 13:55:20 -07:00
2024-09-11 18:54:45 +02:00
2024-10-12 10:17:12 -03:00
2024-10-12 10:17:12 -03:00
2024-10-09 14:07:48 +09:00
2024-09-11 18:54:45 +02:00
2024-09-11 18:54:45 +02:00
2024-10-09 14:07:48 +09:00
2024-09-11 18:54:45 +02:00
2024-09-11 19:19:31 -07:00
2024-10-07 19:47:18 -04:00
2024-10-15 19:30:19 -07:00
2024-10-04 22:29:13 +02:00
2024-10-16 11:26:59 +08:00
2024-09-22 15:02:21 +01:00
2024-09-22 15:02:21 +01:00
2024-09-24 14:26:54 +02:00
2024-10-04 17:09:43 +02:00
2024-08-22 14:52:54 -04:00
2024-02-06 18:19:41 -08:00
2024-09-28 23:34:26 -07:00
2024-10-07 20:15:33 -04:00
2024-07-04 11:30:20 +10:00
2024-09-27 13:33:05 +02:00
2024-09-22 15:02:21 +01:00
2024-09-13 12:57:56 +02:00
2024-09-11 18:54:45 +02:00
2024-09-23 07:07:07 +09:00
2024-09-11 18:54:45 +02:00
2024-09-26 16:34:48 +02:00
2024-10-08 13:21:03 +09:00
2024-09-09 07:49:55 -07:00
2024-10-08 13:21:03 +09:00