Skip to main content

All Questions

Tagged with
-1 votes
1 answer
245 views

Time delay in unity even when app not active - Calendar app in unity

so I'm making a calendar app in unity, but not just any calendar.. it's a custom calendar app for my friend because he doesn't like georgian, anyway my question is: I have Date.TimeNow.Hour set to get ...
Younis's user avatar
  • 3
0 votes
3 answers
1k views

Generate 72 hours of timeslots with 15 minutes of interval in android

I am trying to generate an array of 72 hours timeslots with 15 minutes of interval but it starts with 00:00 after 24 hours, so basically it prints whole 24 hours timeslots 3 times, but i want to start ...
Nishant Rajput's user avatar
0 votes
1 answer
276 views

How to get difference between two calendar times

I want to get the two calender time difference my calender is val calendar1 = Calendar.getInstance() calendar1[Calendar.HOUR+1] = hour.toString().toInt() calendar1[Calendar.MINUTE] = minute....
IRON MAN's user avatar
  • 201
0 votes
1 answer
126 views

How can I calculate the difference between two dates(confirming some logic)? [duplicate]

In a tutorial I am watching,I am trying to calculate the difference between two dates. I need the initMonth and the finishMonth with the idea being to subtract the initMonth from the finishMonth and ...
CodingChap's user avatar
  • 1,118
0 votes
2 answers
537 views

determine if two cyclic times overlap [closed]

I have been stuck on checking overlapping times. My calendar implementation allows for cyclic or wrap-around time (so having start time after the End time is possible) For example: startTime = 3:30PM, ...
leo's user avatar
  • 187
0 votes
3 answers
710 views

Java calendar retunrning wrong time in milliseconds Android

In an android app I have countdowntimer to display time left in game. It works fine, but when I want to get time in milliseconds for some reason it always gives me full minute. To explain, I have Time ...
MaksimusLapis's user avatar
1 vote
1 answer
189 views

Trying to perform a text change in my textview at a reoccurring time on daily basis in my android project

let say i will like to automatically change my textview text at 02:00pm everyday how do I implement this functionality. val df = DateFormat.getTimeInstance(DateFormat.SHORT, Locale.JAPAN).parse("2:...
stan's user avatar
  • 51
0 votes
0 answers
109 views

Why does the Calendar (GregorianCalendar)'s time change by 12 hours when setting the Hours and Minutes, after midnight, as opposed to before midnight [duplicate]

I'm Creating a Calendar of type GregorianCalendar and setting it to my timezone (GMT+12) Then I literally set the time from strings for hour and minute eg "06" "37" Then display the time in ms If I do ...
james's user avatar
  • 113
-1 votes
1 answer
59 views

Automatic notification at a specific time

What I am trying to make is to have a notification which is going to go off on the exact same time everyday. I'd like to keep as simple as possible as I'm still a semi beginner. Here's my ...
pantank14's user avatar
  • 175
-1 votes
2 answers
806 views

Calculating seconds left till midnight of a specific time zone [duplicate]

I am trying to write a code that calculates how many time in seconds left till midnight in a specific timezone. The time zone I am targeting is EDT which is "GMT-04:00". I found many topics cover ...
LoveDroid's user avatar
0 votes
0 answers
205 views

Timer resetting after midnight

I've got a couple of users in my app reporting a weird behavior of a time reset/bug, i was baffled by it and after testing and collecting logs - i figured that my timer, if started before midnight, ...
XerXes's user avatar
  • 37
-1 votes
3 answers
4k views

Android java get current time in 24 hours format

I am trying to get the current time in 24 hours format by using the code below: Calendar cal = Calendar.getInstance(); int currentHour = cal.get(Calendar.HOUR); int currentMinute = cal.get(Calendar....
dummygg's user avatar
  • 243
0 votes
3 answers
1k views

Calendar get time issue

I have a small application which simply sets the time and date of a Calendar and then retrieves it. Currently when using my application on devices up to API24 its retrieves the correct date which ...
Steven's user avatar
  • 49
-2 votes
2 answers
68 views

Convert Integers into Date format like name of the 'Day' and name of the 'Month' in Java or Android [duplicate]

I have this: integeres = "1495022669"; I want the output: "May 17" How can I achieve it? I tried several answers on internet but couldn't get success. Edited i tried this code level = ...
Adnan Quraishi's user avatar
1 vote
6 answers
10k views

How can I get current time as 09:04:15 instead of 9:4:15 when using Date?

I am trying to get current time as e.g. 09:04:15. As of now I have been using long unixTime = System.currentTimeMillis() / 1000L; Date time=new java.util.Date((long)unixTime*1000); ...
Kspr's user avatar
  • 685

15 30 50 per page
1
2 3 4 5 6