mirror of
https://github.com/jupyter/notebook.git
synced 2025-03-13 13:17:50 +08:00
Added format_datetime utility function
This commit is contained in:
parent
8d47271537
commit
97cfe14abf
@ -824,6 +824,12 @@ define([
|
||||
return time.milliseconds.h;
|
||||
}
|
||||
};
|
||||
|
||||
var format_datetime = function(date) {
|
||||
return moment(date).format("YYYY-MM-D HH:mm");
|
||||
}
|
||||
|
||||
|
||||
|
||||
var utils = {
|
||||
load_extension: load_extension,
|
||||
@ -864,6 +870,7 @@ define([
|
||||
reject: reject,
|
||||
typeset: typeset,
|
||||
time: time,
|
||||
format_datetime: format_datetime,
|
||||
_ansispan:_ansispan
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user