Dates prior to Jan. 1, 1970 in milliseconds???
In my jsp, using tags, I'm trying to convert a birthdate, retrieved from a database, in the format of MM/DD/YYYY into milliseconds. It's very possible this date would be prior to 1970. I've tried using <fmt:parseDate> and <fmt:formatDate>. Appreciate any help one of you very wise programmers can provide.
You could write a function to manually calculate it yourself based on knowing the number of milliseconds in a second, the number of seconds in a minute, the number of minutes in a hour... and so on. So you could parse the date, and then go from there.
No build in Java date function or class is going to help you though, I don't think.
Similar Messages
-
My Iphone 3gs turns itself off and resets the date/time to Jan 1st 1970
Hi all,
My 3gs turns itself off (need to use the top button to turn on) and when it restarts; the time has been reset to Jan 1st 1970 at 00.00.
This has happened a few times; what is wrong and how do I fix it.
Cheers
SimonHi Simon,
I recently got a new refurbished phone because my old one suffered some water damage. About a day after i got the new one it started doing the excat same thing yours is doing. It didn't matter if i wasrunning applications or not, the phone doesn't get hot or anythign, it just turned off.
Sometimes when i turned it back on the date and time have not been reset but a little while later the phoen would turn off and the date would reset.
I spoek to the Apple support team on the phone yesterday and they told me to take it back to the store i went to but first try the latest update.
Did the latest update last night and it seemed to be working fine until this morning when it turned off and reset the date/tme on turning it back on.
Ive since made an appointment with the Store i originally went to for tomorrow and also for the support team to call me today.
I'll update here if they say anthing new or somethign that helps. -
Birthdates Prior to January 1, 1970.
We recently installed Eloqua and I am just learning the system. I am attempting to segment on birth date – specifically customers who have a birthdate between 04/21/1951 and 04/21/1980 (customers who are between 35 and 64 years of age). I receive an error message when I validate the segment. I have isolated the issue to the date of January 1, 1970 – any date prior to January 1, 1970 errors out. But the segment works great with dates on or after January 1, 1970. Any insights would be appreciated.
You could write a function to manually calculate it yourself based on knowing the number of milliseconds in a second, the number of seconds in a minute, the number of minutes in a hour... and so on. So you could parse the date, and then go from there.
No build in Java date function or class is going to help you though, I don't think. -
Time in seconds from Jan 1st, 1970?
Hi,
I was wondering if there is any way to get the time in seconds from 1970 as opposed to the standard 1904?
AlexYou can determine that from LabVIEW itself.
You can get the time in seconds from Jan 1st, 1904 to Jan 1st, 1970 by using "Date/Time to Seconds", locate in the Time & Dialog functions menu. The result is an unsigned long number.
As you know, to get the time in seconds from 1904 until now, use "Get Date/Time in Seconds". The output is a double number, so you may want to convert that result into an unsigned long.
The time in seconds from 1970 until now is:
(1970 to now) = (1904 to now) - (1904 to 1970)
Best regards;
Enrique
www.vartortech.com -
All timestamps are Jan 1, 1970 1:00:01 AM GMT
Finally managed to get the server somewhat working in an acceptable manner on Windows Server 2003 SP2, but still there are a few nagging issues I must deal with. The most notable one being that all entries logged on my main server have their timestamps set to Jan 1, 1970 1:00:01 AM GMT - I assume this is a bug somewhere, but has anyone seen a workaround or know how to get this bug to disappear.
I assume this only happens when installing using the native packages since both servers installed from Zip don't have this issue.#yeah my PC time is cool, don't know if Im always in the same century or wavelenght with everybody though!;)
Is the problem of retrieving date from OS then in My PC or perhaps a problem with My connection? In other words - Can I do anything about it?
And can I somehow see what the updates are? -
Restrict GR date prior to PO creation date.
Dear experts,
The Present configuration allows GR date prior to PO creation date. The system allows users to post Goods receipt (MIGO), even if the GR date is prior to the PO creation date.
How to restrict this? Is there a standard customization in MM or it requires ABAP programming?
Please suggest me a solution as early as possible.
Thanks in advance.
Sathyaraj
Edited by: Jürgen L. on Feb 9, 2012 5:33 PMHI
requierd ABAp prograamming for same you have to use exit
table will be EKKO help for PO creation date
Logic will be while saving MIGO system will compare PO creation date from table EKKO and Posting date of MIGO
Regards
Kailas Ugale -
I am giving away a computer, what is the best way to wipe out data prior to depature
i am giving away a computer, what is the best way to wipe out data prior to depature
Did the Mac come with two grey disks when new? If so, use disk one to erase the drive using Disk Utility and then re-install the OS from the same disk. Once installed, quit and when the new owner boots they can set it up as a new out-of-the-box Mac when they boot it up. The grey disks need to be passed on with the computer.
If you need detailed instructions on how to erase and re-install please post back.
If the Mac came with Lion or Mountain Lion installed the above process can be done using the Recovery HD as since Lion no restore disks are supplied with the Mac.
The terms of the licence state that a Mac should be sold/passed on with the OS installed that was on the machine when new (or words to that effect). -
SAP IHC PAYMENT ORDER - posting date prior to Current posting date
Hello folks,
I have a general question about SAP-IHC module.
While creating a manual internal payment order using IHC1IP transaction code, if I change the "Date Executed" date, the system allows to post the payment order in closed period(posting date prior to the current posting date(for the Bank area in F9B1), i.e. the payment items posted, contained in the IHC payment order, has an old posting date, which is prior to the current posting date of the Bank area - Is this normal?Dear,
Check with settings in OLMR transaction.
Invoice Block - Set Tolerance Limits [Transaction : OMR6]
Here you need to add New entries with - Tolerance Key : LD and company code and set the limits. Please check the documentation which available read as below:
LD: Blanket purchase order time limit exceeded
The system determines the number of days by which the invoice is outside the planned time interval. If the posting date of the invoice is before the validity period, the system calculates the number of days between the posting date and the start of the validity period. If the posting date of the invoice is after the validity period, the system calculates the number of days between the posting date and the end of the validity period. The system compares the number of days with the with the absolute upper limit defined.
Regards,
Syed Hussain. -
How to get the date in 01-jan-2008 format
hi
how to get the date in 01-jan-2008 formatCheck this example of how to get this format..
TABLES: T247.
DATA: V_DATE TYPE SYDATUM.
DATA: V_STRING(20).
V_DATE = SY-DATUM.
SELECT SINGLE * FROM T247
WHERE SPRAS = SY-LANGU
AND MNR = V_DATE+4(2).
IF SY-SUBRC = 0.
CONCATENATE V_DATE+6(2) '-' T247-KTX '-' V_DATE(4)
INTO V_STRING.
WRITE: / V_STRING.
ENDIF.
or
make use of this FM
CONVERSION_EXIT_IDATE_OUTPUT
and see its documentation.
or
/: SET DATE MASK = 'DD-MMM-YYYY'
&DATE&
check with this.
if it is not working try to give space between DD and MMM and YYYY
all of the three work...choose whichever suits u
eg2:
Use FM:CONVERSION_EXIT_IDATE_OUTPUT
Check this Program.....
DATA:DATE TYPE D VALUE '20070912'.
DATA:DATE2(12) TYPE C.
DATA:FINAL_DATE(15) TYPE C.
CALL FUNCTION 'CONVERSION_EXIT_IDATE_OUTPUT'
EXPORTING
INPUT = DATE
IMPORTING
OUTPUT = DATE2.
CONCATENATE DATE20(2) '-' DATE22(3) '-' DATE2+5(4) INTO
FINAL_DATE.
WRITE:FINAL_DATE.
Eg:3
use FM MONTH_NAMES_GET by passing month_names-spras = 'E'
it will return the Mont names in month_names-KTX ( 3 cha short name ) & month_names-LTX ( Long text ). then concatenate 'DD''-' month_names-KTX & 'YY'
reward points if useful -
Want date in 21 jan 2007 format
I want to output date in 21 jan 2007 format which is curently in 21/1/2007 format
Can anyone suggest me a FM ? RegardsYou can use this FM: CONVERSION_EXIT_IDATE_OUTPUT
Regards,
Naimesh Patel -
Displaying date in 01-Jan-2008 format
hi,
I have a urgent requirement while displaying date after selected from the date picker, Is it possible to display date in 01-Jan-2008 format in the date field.
Thanks in advance.
krisGopi,
It look like a bug in WebDynpro, Check below threads for more information:
Why this Date format (dd.MMM.yyyy) doesn't work?
Re: InputField DatePicker Questions
http://help.sap.com/saphelp_nw04/helpdata/en/4a/05ad3e1d1edc61e10000000a114084/content.htm
Thanks
Sandy -
Cache updated date/time is shown as 1970/01/01
When we checked the cache notification for central adapter engine in the cache monitoring , the cache updated date/time is shown as 1970/01/01.
We have tried to do delta cache refresh and complete cache refresh, but we have not got the intended result. Please look in to the problem and let me know if you have any ideas regarding the same.
regards,
KRUSHIHi
Check for these SM59 in XI ->http connections -><INTEGRATION_DIRECTORY_HMI > ->test the connection. check is it successful or not.
Also you can do the cache refresh from SLD->Administration->Cache Overview -
Timestamp and dates prior to 1901
Hi,
I'm using Weblogic 7.0, CMP 2.0 and Oracle 8.1.7 as client/server.
There are a table in Oracle in which one of the primary keys is a DATE column.
That column can include dates/hours prior to 1901.
But when I use a CMP with java.sql.Timestamp class for mapping that column, I
come across a problem.
I cannot perform a findByPrimaryKey of records with that data prior to 1901, because
it never finds them.
If they are not prior to 1901, it works perfectly. WHY? What should I do with
dates prior to that date? Any trick?
Thanks in advanceI have something SIMILAR...
in iCal, some birthdays (all entered in address book) show up as all-day events and some show up as 24 hour events (start/end time). I honestly don't know why any would be different. I noticed it was with a couple of old timers (born in 1925 and displayed as a 24 hour event) and changed to 1950 and then they changed to an all day event which is correct. I then changed them back to 1925 and they stayed an all day event. I somehow think this could be related to what you are seeing, but am not sure.
Marlan -
ITouch turns off and resets date to 1 jan 2000 when it is turned back on.
My iTouch turns itself off at random and when I turn it back on it has reset the date to 1 jan 2000. I have the latest OS. I have done all types of reset. I have deleted all Apps. I have searched the site but I can find no solutions posted.
I think I have solved the problem so I will document what I did in case it is useful to others.
1 I opened the case. The youtube videos make it look easy but it is not. Mine is one of the original so it is old and stiff to open. No plastic implement was strong enough, so I tried a modellers knife - not strong enough, so I tried a penknife but this twists out as it has a curved blade. Finally I managed it with a chisel and considerable force to keep the blade in the hairline joint between the front and back of the case while I twisted it. If you try this wear gloves and don't try to open it in one go. Work around the edge widening the crack and letting it spring back. The idea is to loosen the springs all round a bit before actually openning the case completey.
2 I decided to close it up again before proceeding to see if I could and whether it still worked. It had the greatest difficulty booting up again. It kept resetting every minute or so. So I openned it up again and examined it.
3 The back case has the on/off switch and aerial in it and these contact the motherboard in the front case by means of springy contacts. Since the device is neither airtight or dust proof it seems to me that these contacts can become faulty with time and humidity etc. I cleaned them up, straightened them a bit so that a better contact would be made and put the case carefully back together again. It seemed to work ok.
4 I have now tested it for a week and it has worked perfectly. Previously the longest it went without resetting was 36hrs. I shall keep testing but I am hopeful that the problem is now solved particularly as I have tested the battery life as instructed elsewhere in the forum and found it to be 24hrs which is very good. -
Why java date starts from jan-1970
I want to know that why in java date starts with january 1970 .what it specifies
It would be interesting to know how dates like
1582-10-15 "Originally, the COBOL programming language did not come with built-in time and date functions. However, since Y2K new functions have been introduced using integer dates, although with two different epochs. ANSI dates use 1601-01-01 as day 1. Lilian dates use 1582-10-15 as day 1"
and 1858-11-17 were chosen."The OpenVMS Alpha operating system counts intervals of 100 nanoseconds since the Modified Julian Day epoch, 1858-11-17, 00:00:00.00 UTC. However, it is only incremented every 10 milliseconds, 100,000 intervals (10,000,000 ns) at a time. OpenVMS VAX (formerly VAX/VMS) uses the beginning of the current year as the epoch."
/Kaj
Maybe you are looking for
-
Unable to view PDF files in Infoview
I am unable to view pdf files in InfoView (Business Objects Edge Series XI 3.0) When I select the pdf file from Infoview, I receive the message 'Do you want to save this file' which only allows me to save the document to a location on my computer. Ot
-
When/Why to use Canvas?
Okay, so I'm looking into creating custom components and I know that Canvas class was made to give programmers a class to use solely for drawing. However, you could just use JComponent/Component to creat custom buttons, menu's, etc. So I'm a little c
-
Audio Problems when setting default device
Everytime I try to set my headphones as the default sound device, my computer won't allow me to. I even tried to troubleshoot it, and it came up with the resolution of setting my headphones as the default device, but it failed to due to an error. It
-
Hello gurus, please help me. I've faced problem with consuming ABAP webservice. Here's the original wsdl: [WSDL definition|https://docs.google.com/document/d/1QiuguhN4ZniOUFkWWq2J-uH6Jqjc5wYCvmloAgqDDWs/edit?hl=en] here's the response from WS: [WS Re
-
I would like to make INCREMENTAL backups to a firewire HARD DRIVE of my iTunes music folder, playlists, cover art, settings, etc. In my music folder, there are no songs from the iTunes music store (all music was loaded from CDs). The iTunes help disc