Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lib_base
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sikang
lib_base
Commits
876fdf13
Commit
876fdf13
authored
May 05, 2019
by
sikang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update script
parent
5e1bed20
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
4 deletions
+28
-4
script/script_help.sh
+6
-0
src/main/java/com/common/bean/LatestLoanAppBean.java
+2
-2
src/main/java/tech/starwin/utils/format_utils/StringFormat.java
+20
-2
No files found.
script/script_help.sh
View file @
876fdf13
...
...
@@ -157,6 +157,12 @@ then
else
./refresh_gponline.sh
fi
elif
((
$commod
==
'10000'
))
then
cd
..
git reset
--hard
origin/master
else
echo
"找不到编号"
fi
src/main/java/com/common/bean/LatestLoanAppBean.java
View file @
876fdf13
...
...
@@ -149,7 +149,7 @@ public class LatestLoanAppBean implements Parcelable {
}
public
String
getDueDate
()
{
return
this
.
dueDate
.
replace
(
"T"
,
" "
).
replace
(
"Z"
,
""
)
;
return
this
.
dueDate
;
}
public
void
setDueDate
(
String
dueDate
)
{
...
...
@@ -333,7 +333,7 @@ public class LatestLoanAppBean implements Parcelable {
}
public
String
getCreateTime
()
{
return
this
.
createTime
.
replace
(
"T"
,
" "
).
replace
(
"Z"
,
""
)
;
return
this
.
createTime
;
}
public
void
setCreateTime
(
String
createTime
)
{
...
...
src/main/java/tech/starwin/utils/format_utils/StringFormat.java
View file @
876fdf13
...
...
@@ -193,9 +193,27 @@ public class StringFormat {
/**
* 格式化时间
*/
// public static String convertTime(String srcTime, String formatStyle) {
// String format = srcTime.contains("T") ? "yyyy-MM-dd'T'HH:mm:ss'Z'" : "yyyy-MM-dd HH:mm:ss";
// SimpleDateFormat simpleDateFormat = new SimpleDateFormat(format);
// simpleDateFormat.setTimeZone(TimeZone.getTimeZone("GMT00:00"));
// SimpleDateFormat simpleDateFormatLocal = new SimpleDateFormat(formatStyle);
// simpleDateFormatLocal.setTimeZone(TimeZone.getDefault());
// try {
// if (TextUtils.isEmpty(srcTime)) {
// return "0";
// }
// Date srcDate = simpleDateFormat.parse(srcTime);
// String targetTime = simpleDateFormatLocal.format(srcDate);
// return targetTime;
// } catch (ParseException e) {
// e.printStackTrace();
// }
//
// return "0";
// }
public
static
String
convertTime
(
String
srcTime
,
String
formatStyle
)
{
String
format
=
srcTime
.
contains
(
"T"
)
?
"yyyy-MM-dd'T'HH:mm:ss'Z'"
:
"yyyy-MM-dd HH:mm:ss"
;
SimpleDateFormat
simpleDateFormat
=
new
SimpleDateFormat
(
format
);
SimpleDateFormat
simpleDateFormat
=
new
SimpleDateFormat
(
"yyyy-MM-dd'T'HH:mm:ss'Z'"
);
simpleDateFormat
.
setTimeZone
(
TimeZone
.
getTimeZone
(
"GMT00:00"
));
SimpleDateFormat
simpleDateFormatLocal
=
new
SimpleDateFormat
(
formatStyle
);
simpleDateFormatLocal
.
setTimeZone
(
TimeZone
.
getDefault
());
...
...
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