Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
Y
yzg-util
Project
Project
Details
Activity
Releases
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
YZG
yzg-util
Commits
b481740d
Commit
b481740d
authored
Jul 15, 2021
by
yanzg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
处理分页重复提示BUG
parent
375df04c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
DateHelper.java
...src/main/java/com/yanzuoguang/util/helper/DateHelper.java
+15
-0
No files found.
yzg-util-base/src/main/java/com/yanzuoguang/util/helper/DateHelper.java
View file @
b481740d
...
@@ -250,6 +250,21 @@ public class DateHelper {
...
@@ -250,6 +250,21 @@ public class DateHelper {
return
begin
;
return
begin
;
}
}
/**
* 获取当天的日期
*
* @param date 需要的日期
* @return 返回的日期
*/
public
static
Date
initMillSecond
(
Date
date
)
{
Calendar
c
=
Calendar
.
getInstance
();
c
.
setTime
(
date
);
//当前起始日期
Calendar
begin
=
Calendar
.
getInstance
();
begin
.
set
(
Calendar
.
MILLISECOND
,
0
);
return
begin
.
getTime
();
}
private
static
void
setDayEnd
(
Calendar
cal
)
{
private
static
void
setDayEnd
(
Calendar
cal
)
{
cal
.
set
(
Calendar
.
HOUR_OF_DAY
,
23
);
cal
.
set
(
Calendar
.
HOUR_OF_DAY
,
23
);
cal
.
set
(
Calendar
.
MINUTE
,
59
);
cal
.
set
(
Calendar
.
MINUTE
,
59
);
...
...
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