• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Jj Roberts
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Himai Minh
  • Carey Brown
  • salvin francis

Geekwatch

 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I am currently on the Geekwatch assignment, but am not sure how to return the current date. There is Calender.getTime() method which returns a Date object, but I have looked on the J2 API and cannot find what fields there are. Am I on the right tracks? Am I supposed to use another method which requires using the milliseconds since Jan 1 1970? Please help- I am lost.
Also I was intrigued with the different names used, such as bartender, ranch hand, sheriff etc .... what do these mean?
Thanks
Yen
 
Chicken Farmer ()
Posts: 1932
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why not just create the object yourself? Look over the API's for classes that look like they can fit your needs here, and don't try to make it difficult, simplicity is always the key in these assignments
Jason
 
Sheriff
Posts: 9103
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by yen cheong:
I am currently on the Geekwatch assignment, but am not sure how to return the current date. There is Calender.getTime() method which returns a Date object, but I have looked on the J2 API and cannot find what fields there are. Am I on the right tracks? Am I supposed to use another method which requires using the milliseconds since Jan 1 1970? Please help- I am lost.


Everything you need for this assignment is in the Date class


Also I was intrigued with the different names used, such as bartender, ranch hand, sheriff etc .... what do these mean?


greenhorn = someone new to javaranch who has 30 posts or less
ranch hand = someone who has posted more than 30 times
bartender = moderator (only by invitation of current bartenders/sheriffs)
sheriff = administrator (only by invitation of Paul Wheaton, owner of this site)
 
yen cheong
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Marilyn
Thank you very much for your explaination.
Yen
 
Have you no shame? Have you no decency? Have you no tiny ad?
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic