gregorian-calendar Questions

2

Solved

I am making a driver to calculate various holidays in a given time span. So, I need to find the Gregorian dates of all the Chinese Holidays (Chinese New Year, QingMing Festival, Dragon Boat Festiva...
Jemappes asked 8/6, 2015 at 21:10

2

Solved

The code below gives a different result on Nougat and pre-Nougat. Take a look and try it yourself if you want. I would appreciate it if someone could explain me why and give a solution. I want th...
Futilitarian asked 26/1, 2017 at 21:47

6

Solved

I am working on a learning project related to Android. I am trying to get current year & month by using below code but it not works for me. GregorianCalendar gc = new GregorianCalendar(); gc.Y...
Niple asked 15/4, 2012 at 11:30

3

I'm writing a program that has to convert the current gregorian date and time to a Julian Date and then back to Gregorian gate. Eventually I will need to add the functionality of being able to add ...
Wicopy asked 12/10, 2012 at 18:1

3

Solved

I have a date and I need to know the day of the week, so I used a GregorianCalendar object but I get back some dates that are incorrect. GregorianCalendar calendar = new GregorianCalendar(year, mo...
Bahaism asked 23/9, 2011 at 3:25

3

Solved

So I been at this for a few hours now and it returns the correct Year, and Day but for some odd reason it returns the wrong month. I'm sure its a simple fix but I can't seem to figure it out. pack...
Hopper asked 4/12, 2013 at 5:24

2

Solved

I'm creating a DatePickerDialogFragment where the user will select date of birth. I am wanting to make sure I can handle dates which are non-gregorian. I have not been able to change which type of ...
Noway asked 21/4, 2016 at 13:38

4

Solved

What are the maximum and minimum values of a GregorianCalendar? Are they in a constant like Integer.MAX_VALUE, or maybe GregorianCalendar.get(BLAH)? In a nutshell, how can I create a GregorianCal...
Fauman asked 6/3, 2010 at 15:39

7

Solved

I'm looking for a simple method of converting between java.util.Date and javax.xml.datatype.XMLGregorianCalendar in both directions. Here is the code that I'm using now: import java.util.Gregor...
Geode asked 9/9, 2010 at 18:2

2

Solved

I observed a strange behaviour of java.util.GregorianCalendar, and I wonder why it behaves so. I wanted to get the time in UTC, which is the same instant as 26.10.2014 01:00 CET and then get UTC m...
Wrongly asked 11/8, 2014 at 8:57

2

Solved

I received this exception while using GregorianCalendar java.lang.IllegalArgumentException: Bad class: class java.util.GregorianCalendar Who know how to fix, Please help me. p/s : I used the fo...

3

Solved

If I take the time at the end of the autumn day light time shift (2014-10-26 02:00:00 CET in Denmark) and subtract one hour (so I would expect to go back to 02:00 CEST) and then set the minutes to ...
Welcome asked 20/3, 2014 at 8:55

3

I have a Map containing the birthdate of a person as a GregorianCalendar. For example: { motherEmailID=null, coreType=Ticket, _NULL=null, additionalFaclitiesProvided=[], dateOfBirth=java.ut...
Arched asked 26/8, 2010 at 11:56

4

Solved

I thought I'd be able to create a GregorianCalendar using the constructor that takes the year, month, and day, but I can't reliably get those fields from an instance of the java.sql.Date class. The...
Ogpu asked 2/2, 2012 at 16:24

4

Solved

I'm new to this site and I have just started learning Java. I'm trying to add couple days to the GregorianCalendar but it doesn't work. Here... (Ignore the top chunk), its the adding dates at the b...
Jocund asked 12/8, 2013 at 22:28

1

Solved

I have a webservice returning timestamps in Gregorian seconds. How do I convert Gregorian date (in seconds) to unix timestamp in PHP?
Coycoyle asked 8/8, 2013 at 1:41

2

Solved

I'm having trouble representing Persian (Solar Hijri Calendar) dates as DateTime in C#, specifically on certain days of particular months, for example 31/04 where in the Gregorian calendar such a d...
Bandoleer asked 31/7, 2013 at 6:58

1

Solved

I'm writing an application in Lua that calculates the sunset/sunrise, and to do this I had to convert the Gregorian date in to Julian days initially and do all the complex maths and such from there...
Girlie asked 22/7, 2013 at 14:44

4

Solved

I have a certain time in milliseconds (in a Timestamp object) and I want to use it to create a GregorianCalendar object. How can I do that? EDIT: How do I do the reverse?
Archivist asked 15/12, 2010 at 13:13

1

Solved

I have a database that contains UTC (GMT+0) timestamps. Here is the problem: they refer to billing activity that occurred in the state of Indiana. As some may know, Indiana ... did not observe D...
Bearberry asked 10/2, 2013 at 23:51

6

I have following code to get the weeknumber of the year given in the DateTime object Time public static int WeeksInYear(DateTime date) { GregorianCalendar cal = new GregorianCalendar(GregorianCa...
Farly asked 11/4, 2012 at 8:49

7

Solved

According to the official (gregorian) calendar, the week number for 29/12/2008 is 1, because after the last day of week 52 (i.e. 28/12) there are three or less days left in the year. Kinda weird, b...
Gott asked 9/1, 2009 at 17:31

1

Solved

How can I get DateTime.Now in Gregorian calender when client calendar is non-Gregorian? My project is a Silverlight with C# code and client default calender is not predicted.
Unbridled asked 16/9, 2012 at 5:58

3

Solved

i have some problem, i just getting null value from jDateChooser in jCalendar. This method is function to convert java.util.Date into XMlGregorianCalendar : DatatypeFactory df; public XMLGregoria...
Farther asked 26/8, 2012 at 13:54

4

Solved

I have a weird problem with a Java Gregorian Calendar: SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss:S Z"); sdf.setTimeZone(TimeZone.getTimeZone("US/Pacific")); GregorianCalend...
Bedell asked 14/6, 2012 at 10:42

© 2022 - 2024 — McMap. All rights reserved.