gregorian-calendar Questions

3

Solved

Trying to use the GregorianCalendar, I got stuck on a singularity while computing the number of days since a particular date. In the scala interpreter, I entered : scala>import java.util.Gregor...
Macy asked 22/5, 2012 at 8:33

2

How do you convert 2 dates one in BST(Current date) and the other in GMT so that they can be compared using the calendar date before() and after() methods? I don't know if BST is referring to Briti...
Portie asked 6/4, 2012 at 14:21

3

Solved

Hello I have a problem with GregorianCalendar. What is wrong in there? How outcome is 2010/6/1 and not 2010/05/31? package test; import java.util.Calendar; import java.util.GregorianCalendar; ...
Angelesangelfish asked 31/5, 2010 at 13:8

2

Solved

What might be the difference between getting datetime using Calendar.getInstance() vs new GregorianCalendar() ?
Berliner asked 1/8, 2011 at 22:34

1

Solved

I came across the XMLGregorianCalendar class a while ago and I was impressed by the way it made GregorianCalendar look lightweight. ;) Recently, I noticed a method BitInteger getEon() which baffl...
Kennard asked 17/6, 2011 at 12:20

1

Solved

I'm trying to create a 'fixed' time (midnight in 24 hour clock format, i.e., 00:00:00) to set as a string for a SQL SELECT query using the the following... SimpleDateFormat sdf = new SimpleDateFor...
Pilsner asked 28/1, 2011 at 0:56

2

Solved

How do a I take an input birthday string such as 02 26 1991 and make it into a Gregorian Calendar? I tried parsing it first but it keeps giving me an error message so I'm not quite sure what I'm d...
Distillery asked 25/2, 2010 at 3:53

1

Solved

I have an assignment that converts dates from one calendar system to another. The documentation for GregorianCalendar seems to suggest that you can use dates with BCE years, but I have no idea how...
Endor asked 2/2, 2010 at 21:47

2

Solved

I have a program that needs to start on 1/1/09 and when I start a new day, my program will show the next day. This is what I have so far: GregorianCalendar startDate = new GregorianCalendar(2009, ...
Indohittite asked 13/9, 2009 at 5:10

© 2022 - 2024 — McMap. All rights reserved.