Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
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
钟尚武
dlib
Commits
d437803e
Commit
d437803e
authored
May 15, 2011
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed time display for the change log
parent
627afb81
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
5 deletions
+20
-5
stylesheet.xsl
docs/docs/stylesheet.xsl
+20
-5
No files found.
docs/docs/stylesheet.xsl
View file @
d437803e
...
...
@@ -895,7 +895,7 @@
<!-- This function turns a string of the form 2006-03-21T02:35:20
.510956Z
into a nice
<!-- This function turns a string of the form 2006-03-21T02:35:20
+00:00
into a nice
normal looking date -->
<xsl:template
name=
"format-date"
>
<xsl:param
name=
"xsd-date"
/>
...
...
@@ -905,10 +905,14 @@
<xsl:variable
name=
"year"
select=
"substring($date,1,4)"
/>
<xsl:variable
name=
"month"
select=
"substring($date,6,2)"
/>
<xsl:variable
name=
"day"
select=
"substring($date,9,2)"
/>
<xsl:variable
name=
"hour"
select=
"substring($time,1,2)"
/>
<xsl:variable
name=
"minute"
select=
"substring($time,4,2)"
/>
<xsl:variable
name=
"
l
hour"
select=
"substring($time,1,2)"
/>
<xsl:variable
name=
"
l
minute"
select=
"substring($time,4,2)"
/>
<xsl:variable
name=
"second"
select=
"substring($time,7,2)"
/>
<xsl:variable
name=
"ohour"
select=
"substring($time,10,2)"
/>
<xsl:variable
name=
"ominute"
select=
"substring($time,13,2)"
/>
<xsl:choose>
<xsl:when
test=
"$month = 1"
>
Jan
</xsl:when>
<xsl:when
test=
"$month = 2"
>
Feb
</xsl:when>
...
...
@@ -924,8 +928,19 @@
<xsl:when
test=
"$month = 12"
>
Dec
</xsl:when>
</xsl:choose>
<xsl:value-of
select=
"$day"
/>
,
<xsl:value-of
select=
"$year"
/>
(
<xsl:value-of
select=
"$hour"
/>
:
<xsl:value-of
select=
"$minute"
/>
:
<xsl:value-of
select=
"$second"
/>
UTC)
<xsl:variable
name=
"op"
select=
"substring($time,9,1)"
/>
<xsl:if
test=
"$op = '-'"
>
<xsl:variable
name=
"hour"
select=
"format-number(number($lhour)-number($ohour),'00')"
/>
<xsl:variable
name=
"minute"
select=
"format-number(number($lminute)-number($ominute),'00')"
/>
<xsl:value-of
select=
"$day"
/>
,
<xsl:value-of
select=
"$year"
/>
(
<xsl:value-of
select=
"$hour"
/>
:
<xsl:value-of
select=
"$minute"
/>
:
<xsl:value-of
select=
"$second"
/>
UTC)
</xsl:if>
<xsl:if
test=
"$op = '+'"
>
<xsl:variable
name=
"hour"
select=
"format-number(number($lhour)+number($ohour),'00')"
/>
<xsl:variable
name=
"minute"
select=
"format-number(number($lminute)+number($ominute),'00')"
/>
<xsl:value-of
select=
"$day"
/>
,
<xsl:value-of
select=
"$year"
/>
(
<xsl:value-of
select=
"$hour"
/>
:
<xsl:value-of
select=
"$minute"
/>
:
<xsl:value-of
select=
"$second"
/>
UTC)
</xsl:if>
</xsl:template>
...
...
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