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 7621967
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T04:19:56+00:00 2026-05-31T04:19:56+00:00

TZ on my comp is GMT+5. final DateTime date1 = dtf.parseDateTime(1979-04-29); final DateTime date2

  • 0

TZ on my comp is GMT+5.

  final DateTime date1 = dtf.parseDateTime("1979-04-29");
  final DateTime date2 = dtf.parseDateTime("1979-05-12");
  final DateTime date3 = dtf.parseDateTime("1979-04-02");
  final DateTime date4 = dtf.parseDateTime("1979-04-15");
  System.err.println(date1.toString());
  System.err.println(date2.toString());
  System.err.println(date3.toString());
  System.err.println(date4.toString());

Output is

1979-04-29T00:00:00.000-05:00
1979-05-12T00:00:00.000-04:00
1979-04-02T00:00:00.000-05:00
1979-04-15T00:00:00.000-05:00  

-04? Why?

If add

DateTimeZone.setDefault(DateTimeZone.forID("Etc/GMT+5"));  

before, then output will be

1979-04-29T00:00:00.000-05:00
1979-05-12T00:00:00.000-05:00
1979-04-02T00:00:00.000-05:00
1979-04-15T00:00:00.000-05:00 
  • 1 1 Answer
  • 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-05-31T04:19:59+00:00Added an answer on May 31, 2026 at 4:19 am

    That would be called “Daylight Saving Time” : http://timeanddate.com/time/dst/1979.html

    At 02:00 on 1979-04-29 it changed to -04:00

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

Sidebar

Related Questions

Code: System.out.println(Comparable.<Integer>isAssignableFrom(one.getClass())); Error: comp.java:16: cannot find symbol symbol : method <java.lang.Integer>isAssignableFrom(java.lang.Class<capture#128 of ? extends
int monthCount = GetMonthCount(comp.PaymentFrequency); int day = comp.MaturityDate.GetValueOrDefault(DateTime.Today).Day; DateTime countFrom = comp.EffectiveDate.GetValueOrDefault(DateTime.Today); return new
This is the code: struct comp { bool operator()(Reputation *one, Reputation *two) { if
I'm in an introductory comp-sci class (after doing web programming for years) and became
I find useful groups.google.com/group/comp.lang.prolog/topics cs.cmu.edu/afs/cs/project/ai-repository/ai/areas/ google.com/Top/Computers/Programming/Languages/Prolog/Implementations/ allisons.org/ll/Logic/Prolog/Examples/ prolog.info/ Maybe there are else useful links?
<table id=ext-comp-1389 class=x-btn x-btn-text-icon cellspacing=0 style=width: auto;> <tbody class=x-btn-small x-btn-icon-small-left> <tr> <tr> <td class=x-btn-ml>
I'm in the middle of a project for my Comp Science project for monday,
After reading Hidden Features and Dark Corners of C++/STL on comp.lang.c++.moderated , I was
Trying to figure out a regex for validating a network path ie: \\comp\xyz or
I have DataSet which has 3 columns. Name - insurance comp. name - treatmentDate

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.