Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
F
flot
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
HS-public
flot
Commits
24f70fc6
Commit
24f70fc6
authored
Apr 21, 2013
by
David Schnur
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Re-introduced the %h specifier for back-compat.
parent
87f9c782
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
API.md
API.md
+4
-0
jquery.flot.time.js
jquery.flot.time.js
+1
-0
No files found.
API.md
View file @
24f70fc6
...
@@ -636,6 +636,10 @@ standard strftime specifiers are supported (plus the nonstandard %q):
...
@@ -636,6 +636,10 @@ standard strftime specifiers are supported (plus the nonstandard %q):
%
w
:
weekday
as
number
(
0
-
6
,
0
being
Sunday
)
%
w
:
weekday
as
number
(
0
-
6
,
0
being
Sunday
)
```
```
Flot 0.8 switched from %h to the standard %H hours specifier. The %h specifier
is still available, for backwards-compatibility, but is deprecated and
scheduled to be removed permanently with the release of version 1.0.
You can customize the month names with the "monthNames" option. For
You can customize the month names with the "monthNames" option. For
instance, for Danish you might specify:
instance, for Danish you might specify:
...
...
jquery.flot.time.js
View file @
24f70fc6
...
@@ -73,6 +73,7 @@ API.txt for details.
...
@@ -73,6 +73,7 @@ API.txt for details.
case
'b'
:
c
=
""
+
monthNames
[
d
.
getMonth
()];
break
;
case
'b'
:
c
=
""
+
monthNames
[
d
.
getMonth
()];
break
;
case
'd'
:
c
=
leftPad
(
d
.
getDate
());
break
;
case
'd'
:
c
=
leftPad
(
d
.
getDate
());
break
;
case
'e'
:
c
=
leftPad
(
d
.
getDate
(),
" "
);
break
;
case
'e'
:
c
=
leftPad
(
d
.
getDate
(),
" "
);
break
;
case
'h'
:
// For back-compat with 0.7; remove in 1.0
case
'H'
:
c
=
leftPad
(
hours
);
break
;
case
'H'
:
c
=
leftPad
(
hours
);
break
;
case
'I'
:
c
=
leftPad
(
hours12
);
break
;
case
'I'
:
c
=
leftPad
(
hours12
);
break
;
case
'l'
:
c
=
leftPad
(
hours12
,
" "
);
break
;
case
'l'
:
c
=
leftPad
(
hours12
,
" "
);
break
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment