Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
FE
ClassicMayan
METS MODS Mapping
Commits
42a242fb
Commit
42a242fb
authored
Dec 05, 2020
by
mbrodhu
Browse files
Merge branch 'release/1.1.13'
parents
6f48a84b
8efc014f
Changes
2
Hide whitespace changes
Inline
Side-by-side
pom.xml
View file @
42a242fb
...
...
@@ -5,7 +5,7 @@
<groupId>
org.classicmayan.tools
</groupId>
<artifactId>
metsModsMapping
</artifactId>
<packaging>
jar
</packaging>
<version>
1.1.1
2
</version>
<version>
1.1.1
3
</version>
<name>
metsModsMapping
</name>
<url>
http://maven.apache.org
</url>
...
...
src/main/java/org/classicmayan/tools/MetsModsUtilities.java
0 → 100644
View file @
42a242fb
package
org.classicmayan.tools
;
import
java.text.ParseException
;
import
java.text.SimpleDateFormat
;
import
java.util.Date
;
import
java.util.TimeZone
;
public
class
MetsModsUtilities
{
public
static
String
datestampAsString
(
String
originalDateTimeString
)
throws
ParseException
{
SimpleDateFormat
tgItemTime
=
new
SimpleDateFormat
(
"yyyy-MM-dd'T'HH:mm:ss.S"
);
Date
date
=
tgItemTime
.
parse
(
originalDateTimeString
);
SimpleDateFormat
outFormatter
=
new
SimpleDateFormat
(
"yyyy-MM-dd'T'HH:mm:ss'Z'"
);
outFormatter
.
setTimeZone
(
TimeZone
.
getTimeZone
(
"UTC"
));
String
dateOutputAsString
=
outFormatter
.
format
(
date
);
return
dateOutputAsString
;
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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