Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
ZHHT-IRN-BD-ANALYSIS
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李凯旋
ZHHT-IRN-BD-ANALYSIS
Commits
e60f3c92
Commit
e60f3c92
authored
Nov 23, 2022
by
吴延飞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加获取当前月分区值的工具方法getCurrentMonthPartition
parent
733b30ff
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
DateUtils.java
...streaming/src/main/java/com/zhht/irn/utils/DateUtils.java
+12
-0
No files found.
realtime/hologram-streaming/src/main/java/com/zhht/irn/utils/DateUtils.java
View file @
e60f3c92
...
@@ -1053,6 +1053,18 @@ public class DateUtils {
...
@@ -1053,6 +1053,18 @@ public class DateUtils {
}
}
/**
/**
* 获取当前月的分区值,
* 格式 yyyyMM
* 例如 202211
* @return
*/
public
static
String
getCurrentMonthPartition
()
{
SimpleDateFormat
simpleDateFormat
=
new
SimpleDateFormat
(
"yyyyMM"
);
simpleDateFormat
.
setTimeZone
(
TimeZone
.
getTimeZone
(
"UTC"
));
return
simpleDateFormat
.
format
(
new
Date
());
}
/**
* 获取当前日期时间
* 获取当前日期时间
*
*
*
*
...
...
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