Groups | Search | Server Info | Keyboard shortcuts | Login | Register


Groups > comp.lang.java.programmer > #5662

Re: Converting a Date Object to a GregorianCalendar Object

From Roedy Green <see_website@mindprod.com.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: Converting a Date Object to a GregorianCalendar Object
Date 2011-06-24 18:35 -0700
Organization Canadian Mind Products
Message-ID <area0711fsrrpi4a93sfl87gjj8l6ebksr@4ax.com> (permalink)
References <c6a540ee-ff95-44b7-ab7e-61428d961a15@r33g2000prh.googlegroups.com>

Show all headers | View raw


On Fri, 24 Jun 2011 16:54:32 -0700 (PDT), KevinSimonson
<kvnsmnsn@hotmail.com> wrote, quoted or indirectly quoted someone who
said :

>I can go from a GregorianCalendar object to a Date object with the
>method getTime().  Is there any way to go from a Date object to a
>GregorianCalendar object?  I haven't been able to find a way to do
>it.  If there isn't any way to do it, why isn't there any way to do
>it?

see http://mindprod.com/jgloss/calendar.html
for various recipes.
-- 
Roedy Green Canadian Mind Products
http://mindprod.com
One of the great annoyances in programming derives from the irregularity
of English spelling especially when you have international teams.  
I want to find a method or variable, but I don't know precisely
how its is spelled or worded. English is only approximately phonetic.  
Letters are randomly doubled.  The dictionary often lists variant spellings.
British, Canadian and American spellings differ.I would like to see an 
experiment where variable names were spelled in a simplified English, where 
there were no double letters.I also think you could add a number of rules 
about composing variable names so that a variable name for something would
be highly predictable. You would also need automated enforcement of the 
rules as well as possible.

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Converting a Date Object to a GregorianCalendar Object KevinSimonson <kvnsmnsn@hotmail.com> - 2011-06-24 16:54 -0700
  Re: Converting a Date Object to a GregorianCalendar Object Jeff Higgins <jeff@invalid.invalid> - 2011-06-24 20:43 -0400
    Re: Converting a Date Object to a GregorianCalendar Object KevinSimonson <kvnsmnsn@hotmail.com> - 2011-06-25 14:29 -0700
      Re: Converting a Date Object to a GregorianCalendar Object Lew <noone@lewscanon.com> - 2011-06-26 14:06 -0400
  Re: Converting a Date Object to a GregorianCalendar Object Roedy Green <see_website@mindprod.com.invalid> - 2011-06-24 18:35 -0700
    Re: Converting a Date Object to a GregorianCalendar Object Dr J R Stockton <reply1126@merlyn.demon.co.uk> - 2011-06-27 21:36 +0100
      Re: Converting a Date Object to a GregorianCalendar Object Lew <noone@lewscanon.com> - 2011-06-27 19:38 -0400

csiph-web