Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2020-1-capstone-design2
/
2016104137
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
김예미
2020-04-24 20:24:38 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
7c1cc8a8d03c07a21d25a1a6c98ddc61ae61cb98
7c1cc8a8
1 parent
983f2e18
modify dateformat(yyyy-MM-dd HH
ss)
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
source/DataExtraction/app/src/main/java/com/example/dataextraction/MainActivity.java
source/DataExtraction/app/src/main/java/com/example/dataextraction/MainActivity.java
View file @
7c1cc8a
...
...
@@ -310,7 +310,7 @@ public class MainActivity extends AppCompatActivity {
rrule
=
cure
.
getString
(
8
);
rdate
=
cure
.
getString
(
9
);
DateFormat
timeFormat
=
new
SimpleDateFormat
(
"yyyy
MM
dd HH:mm:ss"
);
DateFormat
timeFormat
=
new
SimpleDateFormat
(
"yyyy
-MM-
dd HH:mm:ss"
);
Date
start
=
new
Date
(
dtstart
);
Date
end
=
new
Date
(
dtend
);
...
...
@@ -560,7 +560,7 @@ public class MainActivity extends AppCompatActivity {
String
duration
=
cursor
.
getString
(
cursor
.
getColumnIndex
(
CallLog
.
Calls
.
DURATION
));
//날짜
long
date_long
=
cursor
.
getLong
(
cursor
.
getColumnIndex
(
CallLog
.
Calls
.
DATE
));
DateFormat
timeFormat
=
new
SimpleDateFormat
(
"yyyy
MM
dd HH:mm:ss"
);
DateFormat
timeFormat
=
new
SimpleDateFormat
(
"yyyy
-MM-
dd HH:mm:ss"
);
Date
date
=
new
Date
(
date_long
);
//db에 추가
...
...
@@ -625,7 +625,7 @@ public class MainActivity extends AppCompatActivity {
String
creator
=
cursor
.
getString
(
5
);
//시간 ms
Long
date_long
=
cursor
.
getLong
(
6
);
DateFormat
timeFormat
=
new
SimpleDateFormat
(
"yyyy
MM
dd HH:mm:ss"
);
DateFormat
timeFormat
=
new
SimpleDateFormat
(
"yyyy
-MM-
dd HH:mm:ss"
);
String
date
=
timeFormat
.
format
(
date_long
);
//내용
String
body
=
cursor
.
getString
(
7
);
...
...
Please
register
or
login
to post a comment