Get Date together with time
I am having a problem to use Long, So that i can display date together with Time. What i can get now is 2002-01-23 but i want 2002-01-23 20:23:23 (yyyy,mm,dd,hh,mm,ss).
Plase reply very urgent.
Think of a Date/Time in an abstract way...meaning a specific point in
time. This can be represented many ways, depending on the "Calendar"
used as a basis, i.e. Hebrew Calendar, Chinese Calendar, Gregorian
Calendar, etc. Java has resolved this by suppling a Calendar object
and providing a Gregorian Calendar implementation.
Here is how I would return the java.sql.Date object:
java.util.Calendar c = java.util.Calendar.getInstance();
c.set(year, month, date, hour, minute, second);
java.util.Date d = c.getTime();
java.sql.Date sd = new java.sql.Date(d.getTime());
Pete
Similar Messages
-
Migration of Equipment Master Data together with PRT data
Hello Experts,
we need to migrate Equipment Master Data which have activated the view PRT data. Most of the fields in this view are stored in table CRFH. Is there a way to migrate Equipment Master Data together with the PRT data of the Equipment? All the BAPI's I found do not have an import structure for those fields. Is a batch-input the only way?
Does anybody know a mass change transaction for Equipments?
Thank you and Regards
ChristianHi Krishna,
You can use the standard batch input program RFBIDE00 in LSMW to update the customer master data. However, there might be scenarios where you might be required to update the fields which do not get updated by the standard bacth input program. If any of such fields are defined as mandatory, then you wont be able to use this method directly.
In such cases you will have to either create a recording to poplate the fields which do not get updated by the standard program and use both the recording and the standard batch input program to update the customer master data OR create a recording for customer master create and use the same in LSMW.
Best regards,
Harsh -
Data record with time interval error
Hi,
I have come across the following error.
Data record with Time interval error and data is getting loaded into data target and no PSA in between.
thanks
krisHi Kris,
Could you please explain your problem little bit more. I mean what is source and target, or you using IP or DTP.
goto the details in monitor tab, you will come to know to which record yo uhave error.
If you are running IP, it is recommended to keep PSA.
Regards,
Venkatesh -
Want date displayed with time on the top banner
Want date displayed with time on the top banner
On the top banner, I see signal, network, wifi, time, alarm, Bluetooth and battery. I want to see date and month and year too. How?There isn't a way to display the date in a banner.. BUT - The calendar icon does display the date and day.
HTH -
Transfer additional data together with a contract from srm to srm-mdm
Hi All,
I have a requirement to transfer additional data together with a contract, such as price scales, discounts, and discount scales
If the contract has condition like
scale Discount
0-10 20%
20-30 30%
from SRM to SRM MDM Catalog.
As a standard practice, we use report SRMMDM_CTR_TRANSFER in SRM to send the standard Contracts from SAP SRM system to the SRM-MDM Catalog repository via SAP XI.
But to transfer additional data , we have to use BBP_SAPXML1_OUT_BADI in SRM 7.0.
If any body worked on the same, please let me know the step by step procedure how to implement BBP_SAPXML1_OUT_BADI.
Regards,
VenkatHi Venkat,
You can have a look at the Note - 1296876
It gives the step - by -step procedure on what how to Enhance Contract Data Transfer.
For this, you may have to do the implementation in BADI BBP_SAPXML1_OUT_BADI
Change the XI mappings and the MDM Import manager mappings.
Hope this helps.
Regard,
Sherfu -
Can someone help with a previous post labeled "Writing to a data file with time stamp - Help! "
Can someone possibly help with a previous post labeled "Writing to a data file with time stamp - Help! "
Thankswhats the problem?
Aquaphire
---USING LABVIEW 6.1--- -
How do I put date along with time on my new iPad?
I need to put date along with time on the top bar on my new I pad but just can't do it, need some help. Thank you in advance.
Unless you can do it with a third party app - and I haven't seen one that will do it - you can't put the date at the top of the iPad. Those features are built into the iOS and there is no user setting to change or add anything to the time setting at the top.
-
Date showing with time in siena
hello everyone!
Iam facing a problem that my Date field which is coming from XL data source is showing with time in siena.
i.e 10-12-2014 is showing as "10-12-2014 12:00 AM".
How to fix it? Waiting for reply!
Thanks in advance
saravanaHello,
This is a known behavior.
please also check
https://technet.microsoft.com/library/dn690139#bkmk_text and
https://technet.microsoft.com/library/dn690139#bkmk_datevalue
The following should fix your issue
Text(YOUR DATE FIELD,DateTimeFormat!ShortDate)
alternatively you can use
Text(YOUR DATE FIELD,"mm-dd-yyyy")
Regards
StonyArc
http://www.stonyarc.com http://www.xboxlivenation.com -
Data acquisition with time stamp
Hi I'm using NI DAQ 6211 to acquire acceration, strain and temperature from a VI. I have made several modifications and my last two vis are attached. I need to get 1000 data points from a encoder and sampling the period is by far the best way to get acceleration considering my hardware.
Is there a way to ensure that all three variables are synchronised within a timestamp without the vi slowing down?
Sincerely
Ahmad
Attachments:
test_6.vi 57 KB
test_5.vi 50 KBThe problem lies in synchronising the acceleration with the load and temperature. For acceleration I'm getting a period from a counter with Implicit values (i.e. without specifying timing). I have set the number of samples to acquire to 1000 points and this task does not require sample timing. Post processing the period data in matlab gives me the acceleration.
Now my vi uses a Sample Clock with set number of samples being acquired for the load and temperature. This means that a set number of samples for load and temperature can be acquired and this time may not be enough to acquire the acceleration points; hence they cannot be mapped in time.
The period is implicit and I can't find a way to synchronise with the load and temperature that are acquired at a fixed sample rate. The bottle neck in this problem is to get the acceleration (period recorded) in sync with the load and temperature. If this can be done without any compromise to the speed of the vi then this problem is resolved.
I have attached the vis which will show the development to overcome this problem.
Sincerely
Ahmad
Attachments:
test_1.vi 50 KB
test_2.vi 49 KB
test_7.vi 49 KB -
Writing to a data file with time stamp - Help!
My program currently asks the user to enter a path to save the data from my virtual channels. What I want is to have a default directory to store my data in and also have the file name that is created to be the date. I tried to use create open or replace but I cant get it to work. Any suggestions would be great. Also and comments to the code would help out a lot.
Thanks
Attachments:
Test.vi 141 KBLook at the attachment. It uses a front panel path control set to only select a new or existing folder (right click and Browse Options). Then, using a Build Path and a Format Date/Time String, a full path to a file is created. Pass this to your Open/Create/Replace File.
Attachments:
Date to File Name.vi 13 KB -
Apache gets installed together with Oracle 11G on my Win2003 x64 server?Rem
Hi all,
I just installed Oracle 11G on my Windows 2003 x64 server.
It seems that it has also installed Apache on it and took over my port 80 on which i would like to run IIS.
Can anyone please advice on how i can either remove apache or if it is needed by oracle then at least change the port so i can have my port 80 back.
I had a browse around but i could not find any configuration files easily.
Looking forward to your response.
Cheers
DanWhen i do netstat -a i get:
Proto Local Address Foreign Address State
TCP wolslice:http wolslice:0 LISTENING
TCP wolslice:epmap wolslice:0 LISTENING
TCP wolslice:microsoft-ds wolslice:0 LISTENING
TCP wolslice:1030 wolslice:0 LISTENING
TCP wolslice:1033 wolslice:0 LISTENING
TCP wolslice:1035 wolslice:0 LISTENING
TCP wolslice:1158 wolslice:0 LISTENING
TCP wolslice:1830 wolslice:0 LISTENING
TCP wolslice:ms-wbt-server wolslice:0 LISTENING
TCP wolslice:3938 wolslice:0 LISTENING
TCP wolslice:5500 wolslice:0 LISTENING
TCP wolslice:5520 wolslice:0 LISTENING
TCP wolslice:5521 wolslice:0 LISTENING
TCP wolslice:netbios-ssn wolslice:0 LISTENING
TCP wolslice:1189 wolslice:1521 ESTABLISHED
TCP wolslice:1231 wolslice:1521 ESTABLISHED
TCP wolslice:1384 wolslice:1521 ESTABLISHED
TCP wolslice:1385 wolslice:1521 ESTABLISHED
TCP wolslice:1390 wolslice:1521 ESTABLISHED
TCP wolslice:1392 wolslice:1521 ESTABLISHED
TCP wolslice:1393 wolslice:1521 ESTABLISHED
TCP wolslice:1394 wolslice:1521 ESTABLISHED
TCP wolslice:1395 wolslice:1521 ESTABLISHED
TCP wolslice:1396 wolslice:1521 ESTABLISHED
TCP wolslice:1397 wolslice:1521 ESTABLISHED
TCP wolslice:1398 wolslice:1521 ESTABLISHED
TCP wolslice:1400 wolslice:1521 ESTABLISHED
TCP wolslice:1402 wolslice:1521 ESTABLISHED
TCP wolslice:1403 wolslice:1521 ESTABLISHED
TCP wolslice:1404 wolslice:1521 ESTABLISHED
TCP wolslice:1417 wolslice:1521 ESTABLISHED
TCP wolslice:1521 wolslice:0 LISTENING
TCP wolslice:1521 wolslice:1189 ESTABLISHED
TCP wolslice:1521 wolslice:1231 ESTABLISHED
TCP wolslice:1521 wolslice:1384 ESTABLISHED
TCP wolslice:1521 wolslice:1385 ESTABLISHED
TCP wolslice:1521 wolslice:1390 ESTABLISHED
TCP wolslice:1521 wolslice:1392 ESTABLISHED
TCP wolslice:1521 wolslice:1393 ESTABLISHED
TCP wolslice:1521 wolslice:1394 ESTABLISHED
TCP wolslice:1521 wolslice:1395 ESTABLISHED
TCP wolslice:1521 wolslice:1396 ESTABLISHED
TCP wolslice:1521 wolslice:1397 ESTABLISHED
TCP wolslice:1521 wolslice:1398 ESTABLISHED
TCP wolslice:1521 wolslice:1400 ESTABLISHED
TCP wolslice:1521 wolslice:1402 ESTABLISHED
TCP wolslice:1521 wolslice:1403 ESTABLISHED
TCP wolslice:1521 wolslice:1404 ESTABLISHED
TCP wolslice:1521 wolslice:1417 ESTABLISHED
TCP wolslice:1521 wolslice:1682 ESTABLISHED
TCP wolslice:1521 wolslice:1770 ESTABLISHED
TCP wolslice:1521 wolslice:3366 ESTABLISHED
TCP wolslice:1521 wolslice:3367 ESTABLISHED
TCP wolslice:1521 wolslice:3771 TIME_WAIT
TCP wolslice:1521 wolslice:3791 ESTABLISHED
TCP wolslice:1682 wolslice:1521 ESTABLISHED
TCP wolslice:1770 wolslice:1521 ESTABLISHED
TCP wolslice:3366 wolslice:1521 ESTABLISHED
TCP wolslice:3367 wolslice:1521 ESTABLISHED
TCP wolslice:3784 wolslice:1521 TIME_WAIT
TCP wolslice:3791 wolslice:1521 ESTABLISHED
TCP wolslice:1380 wolslice:1381 ESTABLISHED
TCP wolslice:1381 wolslice:1380 ESTABLISHED
TCP wolslice:1382 wolslice:1383 ESTABLISHED
TCP wolslice:1383 wolslice:1382 ESTABLISHED
TCP wolslice:3336 wolslice:0 LISTENING
UDP wolslice:microsoft-ds *:*
UDP wolslice:isakmp *:*
UDP wolslice:ipsec-msft *:*
UDP wolslice:ntp *:*
UDP wolslice:netbios-ns *:*
UDP wolslice:netbios-dgm *:*
UDP wolslice:ntp *:*
I cant see which one of those would be the apache started by oracle.
I also checked the lsit of running services and i cant see it there.
But when i browse to http://localhost i get:
Index of /
Name Last modified Size Description
wpad.dat 05-Nov-2009 16:41 2.3K
Apache/2.2.11 (Ubuntu) Server at localhost Port 80
My apologies if this is simple stuff. I am just a begginer with Oracle. -
Group by on date field with time difference of up to 1 minute
Hi,
I need to do a group by on a date field and some other fields, but want to include in the same group rows that are identical but may have a difference of up to a minute in the date field.
group by trunc(datefield,'MI') wouldn't work in cases like 00:00:50 and 00:01:10 (20 sec difference).
I can do a semi join with where exists and between on the date field, but am hoping for another solution.
any ideas?
thanks.
Edited by: Pyrocks on Sep 14, 2011 2:16 PMHi,
It sounds like you want something like this:
WITH got_new_grp AS
SELECT x.* -- or whatever columns you need
, CASE
WHEN datefield > MAX (datefield)
OVER ( ORDER BY datefield
ROWS BETWEEN UNBOUNDED PRECEDING
AND 1 PRECEDING
) + ( 1 / (24 * 60))
THEN 1
END AS NEW_GRP
FROM table_x x
-- WHERE ...
, got_grp AS
SELECT n.*
, COUNT (new_group) OVER (ORDER BY datefield) AS grp
FROM got_new_grp n
SELECT MIN (datefield) AS start_datefield
, MAX (datefield) AS end_datefield
, COUNT (*) AS cnt
FROM got_grp
GROUP BY grp
ORDER BY grp
;Of course, this makes assumptions for all the things you didn't explain.
I hope this answers your question.
If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only), and the results you want from that data.
Explain, using specific examples, how you get those results from that data. Be sure to include an example like the one Kim posted, where rows a and c are more than a minute apart, but both are within a minute of row b, or are connected by a chain of rows each less than 1 minute apart from its neighbor.
Always say what version of Oracle you're using. -
How to filter a table using column filter on a date field with time?
Hi,
I have a date field where I am inserting a date+time value, for example: 01/01/2012 09:30:00 So, I would like to filter an adf table using a column inputdate filter to filter only by date this field.
I was testing using formats but with no luck.
Any Idea?
Thanks,
jdev 11.1.2.3
Edited by: jhon.carrillo on Oct 29, 2012 12:23 AMThen, try to add another attribute in your SELECT VO statement, which truncates the original date_and_time field:
SELECT.... TRUNC(DATE_AND_TIME) as truncated_dateAfter that, put reference to that attribute in the filter facet, as follows
<f:facet name="filter">
<af:inputDate value="#{vs.filterCriteria.TruncatedDate}" id=.../>
</facet>Do not forget to add the TruncatedDate attribute in the <tree...> binding in the pageDef, along with others VO attributes. Do that manually. -
Master data loading with Time dependent InfoObjects
Hi
For product master, I have a infoobject Standard Cost, a time dependent keyfigure attribute.
How do I Load data for product master
1. From flat file
2. from R/3 Pleas provide steps to do on R/3 side
Thanks in advance,
Regards,
VjHi,
Though you Material grade is time dependent and sequentially changing.
You can create 4 different DTP with Grade selection (only 1 Transformation).
For example, 1 DTP with filter Grade A, another DTP with grade B, so on.
and executive all 4 dtp sequentially and activate master data after every DTP run.
Hope it will workout.
Thanks,
Balaram -
When is Apple going to get it together with iTunes?
I recently purchased an iPhone and therefore had to install iTunes. Realizing that the only effective way to get my music from my library to my phone is through iTunes, I decided to check it out. I have over 3000 house music CDs that I have been encoding over the last year. These are CD collections that have multiple volumes. Each volume has multiple CD's. Each CD has multiple artists.I have struggled forever to find a tagging application that was as sufficently complex as my music collection.
I made the terrible mistake of allow iTunes to manage my music library (well over 1.5 terra bytes of audio) and since it was going to take forever to catalog all of the tracks, I let it run over the weekend while I was out.
Now I have so many folders in my Library folder that I can't open it in Explorer. Most of the files are inaccessible by conventional means even though I am running 8gB of RAM. Within each folder there are more folders. Because these collections have multiple artists, I have hundreds of folders that contain a sub-folder named for the album and another subfolder named for the volume....you get the point.
So, I was able to grab a couple of folders and I frantically started reordering my files so that my favorites are back together.
Sometimes I want the files to be setup like:
Hed Kandi Collection
---Deeper
-----Deeper, V01CD01
--------01 So Alive (orig mix)- Rurals.mp3
Seldom do I want the files to be setup like iTunes does it:
Rurals
---(orig mix)
------01 So Alive
---------V01CD01
------------Deeper
--------------01 So Alive (orig mix)- Rurals.mp3
Is there anyway to undo the damage that iTunes has already done to my file structures? Is there any way to customize the way iTunes handles music cataloging? Is there any way to get iTunes to quit being so darned grabby with all my music info?
Any help would be greatly appreciated.
Best wishes,
jaseiTunes is a music manager. You don't need to manage thru windows Explorer.
iTunes puts songs into Artist/Album/Song. That's it. Can't change it.
Is there anyway to undo the damage that iTunes has already done to my file structures?
No
Is there any way to customize the way iTunes handles music cataloging?
No. But you really mean you want to organize how it stores the files in the directory structure.
iTunes is a catalog itself. The directory structure is pretty much irrelevant to how you see the music ion iTunes.
Is there any way to get iTunes to quit being so darned grabby with all my music info?
You can leave the music as you organize it yourself.
In iTunes prefs -> Advanced, uncheck *Copy files to iTunes music folder* and uncheck *Keep iTunes music folder organized*.
Maybe you are looking for
-
Objects are inactive even in Backend it is active.
Hi All, I am getting the error while running the report. While selecting the 0CALMONTH, i am getting the error as 0calmonth info object is no available in Version A. But i checked in BW system and found that, 0CALMONTH is in active version. Can you p
-
HP Deskjet all in one printer 3050A J611 n. Not printing
Disconnected printer for a week. When reconnected printing very slow and laboured. Cleaned print head, and paper feed. Restored default and set up from scratch. Wireless network results printout - no problem found, congratulations on successful setup
-
How to multiple/ parallel sets of books to generate more than one financial statement based on different (or the same) accounting principles. My Client needs Parallel Ledger in SAP B1 similar like SAP ECC. Is this functionality available ?
-
Pretty stupid problem while installing XP on a macbook
First thing, please excuse me if there're mistakes in this message, I'm not a native english speaker. Anyway, I've got a little problem. I'm trying to install XP on my macbook. I already did it before, but my hard drive crashed -while my external bac
-
Performance issue with Loop under Loop
Hi, I have an issue with the performance, as per the requirement I have to use the Loop under Loop logic. I have sorted the Where condition field in Parent Loop and also in Child Loop like below : SELECT GUID_PRCTSC "Primary Key as GUID in "RAW" Fo