Top "Gregorian-calendar" questions

The Gregorian calendar is the de facto international civil calendar.

Java - XMLGregorianCalendar Exception

I am working on a web service program that makes calls back and forth in the form of XML. My …

java xml eclipse gregorian-calendar
Iterate between two dates including start date?

Sorry for the apology for asking repeated question.. public static void main(String[] args)throws Exception { GregorianCalendar gcal = new GregorianCalendar(); …

java calendar simpledateformat gregorian-calendar
Removing "Z" part from XMLGregorianCalender

When I do like below, GregorianCalendar calendar = new GregorianCalendar(TimeZone.getTimeZone("UTC")); calendar.setTime(startTime); // startTime Date DatatypeFactory.newInstance().newXMLGregorianCalendar(…

java xsd gregorian-calendar
Why does my GregorianCalendar object return the wrong day of week?

My issue is seemingly extremely simple. I make a calendar graphic user interface, from a GregorianCalendar object, and uses it's …

java date calendar gregorian-calendar
How to get timezone from timezone offset in java?

I know how to get the opposite. That is given a timezone I can get the timezone offset by the …

java calendar timezone timezone-offset gregorian-calendar
Unsure what get(Calendar.DAY_OF_WEEK) returns

My problem can be easily created by the scenario below: //create a gregorian calendar object that set the date and …

date calendar get dayofweek gregorian-calendar
Ask Gregorian Calendar for hour of day in java

I'm using a Gregorian Calendar to set a specific date and time to an application using the set function of …

java datetime gregorian-calendar hour minute
Converting Gregorian date to Julian Date and then back again (with time)

I'm writing a program that has to convert the current gregorian date and time to a Julian Date and then …

c++ date gregorian-calendar date-conversion
how to convert dateTime type to gregorianCalendar

I am getting time in string like this "2011-02-27T10:03:33.099-06:00" which is of xml dateTime type. I also …

java datetime gregorian-calendar
How to get today's date in the Gregorian format when phone calendar is non-Gregorian?

NSDate *now = [[NSDate alloc] init]; gives the current date. However if the phone calendar is not Gregorian (on the emulator …

objective-c gregorian-calendar