mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2025-12-06 02:30:46 -08:00
Add Timestamp to DateFormat (#7043)
* add Timestamp to DateFormat * improve TIMESTAMP documentation
This commit is contained in:
parent
8ead7e0624
commit
d32d559f93
3 changed files with 29 additions and 1 deletions
|
|
@ -354,6 +354,9 @@ exports.formatDateString = function(date,template) {
|
|||
var result = "",
|
||||
t = template,
|
||||
matches = [
|
||||
[/^TIMESTAMP/, function() {
|
||||
return date.getTime();
|
||||
}],
|
||||
[/^0hh12/, function() {
|
||||
return $tw.utils.pad($tw.utils.getHours12(date));
|
||||
}],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue