Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8906799

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T02:44:45+00:00 2026-06-15T02:44:45+00:00

I have a method getCalendarFromClass that returns me an object of Calendar . And

  • 0

I have a method getCalendarFromClass that returns me an object of Calendar.

And I am converting it into LocalDate of Joda Time API using fromCalendarFields method.

LocalDate.fromCalendarFields(a.getCalendarFromClass());

But how can specify the TimeZone when performing this conversion as I didn’t found it in javadoc.

The javadoc for fromCalendarFields method mentions :

Each field is queried from the Calendar and assigned to the LocalDate. This is useful if you have been using the Calendar as a local date, ignoring the zone.

  • 0 0 Answers
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T02:44:47+00:00Added an answer on June 15, 2026 at 2:44 am

    The Calendar has a time zone, and that will be used (by the Calendar) when Joda Time requests the different field values. Joda Time just uses calendar.get(Calendar.YEAR) etc.

    The returned LocalDate doesn’t have a time zone, conceptually.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have method that returns Drawable , and if its Bitmap object is recycled
I have method that parses a list of String records into objects and returns
I have method that returns module path of given class name def findModulePath(path, className):
I have method that accept argument of Object type. But inside of method checked
We have method that looks like this : public String getCommandString(Object...args) { return this.code
Folks, I have method that returns true if all characters are legal and false
I have method that I am using to check the access of certain controls.
I have method that returned NSManagedObject and I don't know what kind of NSManagedObject
I have method in a class that I need to make sure is only
I've got some 3rd party beans that have method signatures that fit quite well

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.