Skip to main content

Get time before 1 second of current time in java


// 現在日時(1秒前)
LocalDateTime endDate = LocalDateTime.now();
endDate = endDate.minusSeconds(1);
// 現在日時から24時間前の日時をセット
LocalDateTime startDate = LocalDateTime.now();
startDate = startDate.minusHours(24);

Comments

Popular posts from this blog

Awkwardness

I am so scared to talk To ask , to react , to wait , to listen , to understand the simple things  that people easily converse about. Its not like I do not like to listen ,   Its not like I do not like to share ,  Its not like I do not like to question , Its the way I have been known, addressed continually I am expecting a lot more from my people that they should ask,  I would calmly listen, They should guess and  I would respond  There. is a gap of my initiative to respond to surroundings I love being in my own world until someone makes me realise I am doing something out of the world  Thats not the way to do. Thats not the time to be quiet. Thats such a simple thing to understand . But you know what you do not want to change . You have ego bigger than to converse right thing right at the face. You have an image of being good. You act as if they are going to give you an award. It is not the way to be. You behave fake . Why...

SelfCare

 Self care is the responsibility of one to deal with or handle it elegantly, in quality humbly manner. Rare indeed is the nature that does not become a little more intense when its own affairs come under discussion. It is the cult of the self that is killing its within it the classic traits of psychopaths: superficial charm, grandiosity and self importance; a need for constant stimulation; a penchant for lying, deception and manipulation; and the incapacity for remorse or guilt. One who has never seek attention from people around or for matters from oneself. Suddenly starts to develop a habit to care for one makes the mind resistance to do the good to yourself. May it be that one decision or one step stepping out and getting most of what you always want. The thoughts you live from many many years towards perfect routine, body, shape, care healthy being is all there waiting for you to get started  But the monkey mind keeps on jumping and gets distracted from making the actual m...

No one knows

No one knows except that person himself How many efforts are needed  To do any small little thing that values How difficult is to be in state where  Everyone is blaming No one wants to accept No one knows why that person has disconnected How and what stroms might have attacked and impacted No one knows that why if a person is quite is quite No one knows if person is rude why he is so If person is ignorant then why it's so No one knows that if a person is friendly then why he is being so. Everything yes everything has some reason Ever that person might be hurt deep, cared much, been criticized, been judged, been labelled, been blamed, been ignored, been went through some very little thing that has made that individual behave that way  It's not your fault  Either it's not person's fault It's pattern of experience and also Because it's a loop of every single person  No one is exceptional. Everyone has this same kind of journey Which outcomes as...