How to print out time as hr:min:sec without AM/PM?
how to print out time as hr:min:sec without AM/PM
since hr specifies AM/PM. Thank you. My first thought
is that there exists a formatter to do this. My second
thought is that if not I can convert the AM/PM in the
DateFormat.MEDIUM to the right hour.
import java.text.*;
import java.util.*;
public class Test {
public static void main (String [] args) {
SimpleDateFormat format = new SimpleDateFormat("HH:mm:ss");
Date d = new Date();
System.out.println( format.format(d) );
}
Similar Messages
-
How to print date/time in report page footer?
Hi
I have a report which users can print as PDF.
However, I like to display current date/time in report footer.
I can see the Page Footer in section but can't figure out how to print date/time there.
Thanks for help.hi movilogo
Please try this.
Create hidden item P1_DATE
Create On load process in page 1 and put this code
begin
:P1_DATE:=TO_CHAR(SYSDATE,'DD-MON-YYYY HH:MM:SS');
end;
Open your region in Page 1 put this code in Footer area
*&P1_DATE.*
Refresh your page.
you will get the output like this.
16-SEP-2009 11:09:17
thanks
Mark Wyatt -
How to print system-time in XML?
Hi,
Please help me how to print system-time in XML. Like we use sy-uzeit in ABAP.
Can we use anything in XML too..
Thanks & Regards,
Saihi movilogo
Please try this.
Create hidden item P1_DATE
Create On load process in page 1 and put this code
begin
:P1_DATE:=TO_CHAR(SYSDATE,'DD-MON-YYYY HH:MM:SS');
end;
Open your region in Page 1 put this code in Footer area
*&P1_DATE.*
Refresh your page.
you will get the output like this.
16-SEP-2009 11:09:17
thanks
Mark Wyatt -
How to print date & time stamp on photos?
How to print date & time stamp on photos?
Three methods:
File>process multiple files>labels. Be sure to uncheck "same as source", or the originals will be overwritten. It is best to work on duplicate files, esp. while learning.
Use the horizontal or vertical type tool to add the information manually to each picture file
If the same information is to be applied to several pictures, e.g. a copyright notice, use of a brush made in PSE is very efficient -
when I type a document and try to save it, there are black lines over my sentences, as if it had been highlighted, and that's how it prints out, just black lines
Hi Vickey, S,
Sorry for the delay in response. Is it happening with all the files?
Also, please write the steps you are taking to type in the document.
You might try uninstalling and re installing the Reader in case it is happening with all the files.
URL to install the Adobe Reader is Adobe - Adobe Reader download - All versions
Thanks,
Vikrantt Singh -
How to print out answers using the form I created
I created an application form for my company. People have submitted their applications, but I do not know how to print them out.
Is there a way to copy the answers into the form and print that? Or something like that?
I cannot just print the answers because it's over 100 pages and would be disorganized.
I basically just need to know how to print out the form I created with the respondants answers.
ThanksHere is what you can do...
Open the form file
Go to the View Responses tab
Select the View menu in the upper right corner of the UI
Select the Details View menu item on that menu
The Details View pane will open on the right side of the window
At the bottom of that pane there is a set of buttons
The first button let's you print the detail view of the currently selected response
The last button labeled Export will create a PDF file of the selected response
Is that what you were trying to accomplish? I'll admit that we need to make print and export to PDF more discoverable and easier to get to - that was too many steps
Randy -
How to print out multilingual reports from the main report using Xliff temp
Hi all,
How to print out multilingual reports from the main report using Xliff temp?
When I want main report call subtemplate and finish xliff tranlation
<?for-each@section:INVOICE?><?end for-each?>
<?import:xdo://XXIH.XXNR_XXINVPRINT_SUB.en.FI/?>
<?start:body?><?call:Header?><?call:Line?><?call:Weights?><?call:Banks?><?end body?><?call:Footer?>
Prints out fine with Finnish translation
But if I want in main program to check what language is used e.g.
if trx_number = 142 call Finnish translation and if trx_number =144,
call English translation.
<?for-each@section:INVOICE?><?end for-each?>
<?if:TRX_NUMBER=’142’?>
<?import:xdo://XXIH.XXNR_XXINVPRINT_SUB.en.FI/?>
<?start:body?><?call:Header?><?call:Line?><?call:Weights?><?call:Banks?><?end body?><?call:Footer?>
<?end if?>
<?if: TRX_NUMBER=’144’?>
<?import:xdo://XXIH.XXNR_XXINVPRINT_SUB.en.US/?>
<?start:body?><?call:Header?><?call:Line?><?call:Weights?><?call:Banks?><?end body?><?call:Footer?>
<?end if?>
Prints out always in English and never the Finnish translation.
Program goes fine to if branch but does not print out Finnish
Does anybody know what could be wrong?
BR
KariThanks Amit,
I have two layout, main-layout and sub-layout
Main layout call subtemplate
I have registered layout and xliff-file
Main template
Localized Templates
File Name Language Territory
XXNS_INVOICE_MAIN.rtf English
SUB template
Localized Templates
File Name Language Territory
XXNS_INVOICE_SUB.rtf English
Translatable Template
File Name Language Territory
XXNS_INVOICE_SUB.rtf English United States
Available Translations
Language Territory Progress
English Finland Complete
If main report call subtemplate and finish xliff tranlation
<?import:xdo://XXIH.XXNR_XXINVPRINT_SUB.en.FI/?>
Prints out fine with Finnish translation
But if I want in main program to check what language is used e.g.
if....
<?import:xdo://XXIH.XXNR_XXINVPRINT_SUB.en.FI/?>
.....end if;
if....
<?import:xdo://XXIH.XXNR_XXINVPRINT_SUB.en.US/?>
.....end if;
Prints out always in English and never the Finnish translation.
Program goes fine to if branch but does not print out Finnish
Do you it's set up problem or program problem
BR
Kari -
How to print out the position of 2 dimension arrays?
there are 2 dimension arrays, how can print out the position of value than 4?
for example
0 2 3 2 2 2
0 1 1 2 5 3
1 2 3 3 2 1
print out:
The pos is ( 5,2).Hello
If I understand your question correctly, you are trying to print out the indexes where the value in your matrix is greater than 4
If this is the case, then what you need to use is nested for loops e.g.
for (int i = 0; i< array[0].length; i++)
for (int j = 0; j< array[].length; j++)
int value = array[i][j];
if (value > 4)
System.out.println("The pos is (" + i + "," + j + ")" );
Regarding the syntax I have used to get the size of the array, I am not sure if this is correct, but you should have an idea of what I am doing.
Sajid -
How can you build time series measures in OBIEE without using TODATE AGO fu
How can you build time series measures in OBIEE without using TODATE and AGO function?
Please provide steps to build time series
measures in OBIEE without using TODATE and
AGO function. Dashboard results not storing
in cache when using TODATE and AGO functions.
eventhough its cached users queries not
hitting cache because queries doesn't match
exact date time when using TODATE and AGO
functions. so I want to build queries using
sysdate and some simple calculations. Please
send your inputs/ideas for my questions..
Thanks in AdvanceThis can be using Msum function in answers. Use the following formula, here dollars is my metric. Change the formula based on your metric.
Msum("Sales Measures".Dollars ,2) - "Sales Measures".Dollars
the report will be cached and better performed compared with time series. check ti
- Madan Thota -
Enter run time in hours / mins / secs on the front pannel
I am trying to get a pop up VI to run alongside my main program. While the measurment parts of my software run I want a VI to pop up and display the run time in hours / mins / secs. Once the main VI ends its sequence, I want the timer VI to close down again. It sounds easy and maybe it is, but can I get it to work ........... HELP !!
I have created an example program for you (in LV 6.0). Basically a time window will popup at the start and show the runtime (calculated, so starts at 0 hours), and when you stop the Main vi the time window will close. The time is updated at every loop of the Main vi. All of this is achieved through VI server as you will see.
I hope this helps you.
Kim
Attachments:
Runtime_indicator.llb 39 KB -
Hi all,
Long time ago, I manually created a Database (APGriMMRP) and 3 Tables (dbo.Table_1_XYcoordinates, dbo.Table_2_Soil, and dbo.Table_3_Water) in my SQL Server 2012 Management Studio (SSMS2012). The dbo.Table_1_XYcoordinates has the following columns: file_id,
Pt_ID, X, Y, Z, sample_id, Boring. The dbo.Table_2_Soil has the following columns: Boring, sample_date, sample_id, Unit, Arsenic, Chromium, Lead. The dbo.Table_3_Water has the following columns: Boring, sample_date, sample_id, Unit, Benzene, Ethylbenzene,
Pyrene. The dbo.Table_1_XYcoordinates is a Parent Table. The dbo.Table_2_Soil and the dbo.Table_3_Water are 2 Child Tables. The sample_id is key link for the relationship between the Parent Table and the Child Tables.
Problem #1) How can I print out or export these 3 dbo Tables?
Problem #2) If I right-click on the dbo Table, I see "Start PowerShell" and click on it. I get the following error messages: Warning: Failed to load the 'SQLAS' extension: An exception occurred in SMO while trying to manage a service.
--> Failed to retrieve data for this request. --> Invalid class. Warning: Could not obtain SQL Server Service information. An attemp to connect to WMI on 'NAB-WK-02657306' failed with the following error: An exception occurred in SMO while trying
to manage a service. --> Failed to retrieve data for this request. --> Invalid class. .... PS SQLSERVER:\SQL\NAB-WK-02657306\SQLEXPRESS\Databases\APGriMMRP\Table_1_XYcoordinates> What causes this set of error messages? How can
I get this problem fixed in my PC that is an end user of the Windows 7 LAN System? Note: I don't have the regular version of Microsoft Visual Studio 2012 in my PC. I just have the Microsoft 2012 Shell (Integrated) program in my PC.
Problem #3: I plan to create an XML Schema Collection in the "APGriMMRP" database for the Parent Table and the Child Tables. How can I handle the relationship between the Parent Table and the Child Table in the XML Schema Collection?
Problem #4: I plan to extract some results/data from the Parent Table and the Child Table by using XQuery. What kind of JOIN (Left or Right JOIN) should I use in the XQuerying?
Please kindly help, answer my questions, and advise me how to resolve these 4 problems.
Thanks in advance,
Scott ChangIn the future, I would recommend you to post your questions one by one, and to the appropriate forum. Of your questions it is really only #3 that fits into this forum. (And that is the one I will not answer, because I have worked very little with XSD.)
1) Not sure what you mean with "print" or "export", but when you right-click a database, you can select Tasks from the context menu and in this submenu you find "Export data".
2) I don't know why you get that error, but any particular reason you want to run PowerShell?
4) If you have tables, you query them with SQL, not XQuery. XQuery is when you query XML documents, but left and right joins are SQL things. There are no joins in XQuery.
As for left/right join, notice that these two are equivalent:
SELECT ...
FROM a LEFT JOIN b ON a.col = b.col
SELECT ...
FROM b RIGHT JOIN a ON a.col = b.col
But please never use RIGHT JOIN - it gives me a headache!
There is nothing that says that you should use any of the other. In fact, if you are returning rows from parent and child, I would expect an inner join, unless you want to cater for parents without children.
Here is an example where you can study the different join types and how they behave:
CREATE TABLE apple (a int NOT NULL PRIMARY KEY,
b varchar(23) NOT NULL)
INSERT apple(a, b)
VALUES(1, 'Granny Smith'),
(2, 'Gloster'),
(4, 'Ingrid-Marie'),
(5, 'Milenga')
CREATE TABLE orange(c int NOT NULL PRIMARY KEY,
d varchar(23) NOT NULL)
INSERT orange(c, d)
VALUES(1, 'Agent'),
(3, 'Netherlands'),
(4, 'Revolution')
SELECT a, b, c, d
FROM apple
CROSS JOIN orange
SELECT a, b, c, d
FROM apple
INNER JOIN orange ON apple.a = orange.c
SELECT a, b, c, d
FROM apple
LEFT OUTER JOIN orange ON apple.a = orange.c
SELECT a, b, c, d
FROM apple
RIGHT OUTER JOIN orange ON apple.a = orange.c
SELECT a, b, c, d
FROM apple
FULL OUTER JOIN orange ON apple.a = orange.c
go
DROP TABLE apple, orange
Erland Sommarskog, SQL Server MVP, [email protected] -
GMT Calendar printing out time as IST
Can anyone tell me why the following is happening please. I know there are always people asking about dates/times/timezones etc but i haven't seen anyone with this problem. so i'll ask it.....
I'm creating a calendar with the GMT timezone. If the calendar is set to a date that is in daylight savings time it prints out the date with the timezone IST, but if the date is not in daylight savings time the date is GMT.
How can i make it print the date with GMT ?
I'm in Dublin, working on NT, with jdk1.3.1
here's the code snippets if it helps:
String time = "2003.08.13 AD 11:10:00.802 GMT";
Calendar cal = Calendar.getInstance(TimeZone.getTimeZone("GMT"));
SimpleDateFormat sdf = new SimpleDateFormat("yyyy.MM.dd G HH:mm:ss.SSS z");
Date temptime = sdf.parse(time);
cal.setTime(temptime );
temptime= cal.getTime();
System.out.println("temptime = "+temptime);
And here's the output:
Wed Aug 13 12:10:00 IST 2003Hi "mazzam3",
If you look at the source code for the "SimpleDateFormat" class, you will see that it uses the default time zone. So even though you have ensured that your "Calendar" instance is using the correct time zone, your "SimpleDateFormat" instance is not. What I usually do is set the default time zone for the JVM before I start working with dates and times -- that way I know that all date and time related classes are using the same time zone. So I guess in your case, I suggest setting the default time zone to GMT.
Hope this helps.
Good Luck,
Avi. -
How to print out SMS & MMS?
Hi
I’m having around many SMS & MMS (Total around 100) in my phon. It’s a conversation between me and my teacher. I want to print them out or convert them to Microsoft word so I can manage them. How can I do that with my Nokia E90 (communicator).
Thanks in advanceSorry.. but... I'm trying to figure out how to print the messages that are saved on Nokia Ovi - in the conversation form.. without having to copy & paste 1363 messages. I need the messages printed out and I'm not prepared to do 'copy & paste' into word ... one thousand three hundred and sixty three times. There has to be an easier way and to be perfectly honest.. seems really really wierd that a very major option in the majority of software ever written, programmed or designed, is NOT available from 'Nokia Ovi'... I have done searches and can't find any answers on this.. and although other people have asked the same question... the answers they were given really didn't answer the question... What's up with that? Do you have a 'simple' solution.. not one that involves going the Nokia PC Suite because the messages were not backed up using Nokia pc suite. I also cannot dump the messages from the phone to Nokia pc suite because I dropped the phone in the pool... so I am relying on the last back up I made of the messages thru nokia ovi, to be able to retrieve the details... etc etc..
Please make this easy for me... I will praise you forever.. if you can... or else i'll go 'postal'.. i'm kidding. -
How can I print out the graph I need only, without the controls and indicators?
I'm doing some programming in LABVIEW. I need to print out only the graph, without the buttons, controls, indicators. I tried to look for such a function in LABVIEW, but in vain. How can I achieve the result I expect in my programming?
Hi Fenny,
you should use the report generation functions to create a report containing your graph image and print it.
Take a look at the Sample Test Report.vi you find in the report examples of LV.
Just look at the part of the diagram where it is used Append Control Image to report.vi (in the center of the report functions chain); a graph reference is wired to the Ctrl reference input ( to create a reference of your graph right click on it and select create reference).
Let me know if you need more help,
Alberto -
How to print date & time in photos
Thanks for the help.
I need to print either photos with time and dates in them... or the Bridge contact sheet with date and time info.
The final printed image will be used in court to photo document evidence.
Do I have to do a screen capture or is there some other way?
My camera will not allow me to imprint time and date.
I'm using CS4 on both Windows and Mac.
Thanks again in advance for the taking the time to help.
Dances With Pixels
I may have sent this twice, but I'm new to this and this is my first time trying to post.Thank you for taking the time to respond. Much appreciated.
And will follow up on your suggestions.
Date: Tue, 10 Aug 2010 23:55:31 -0600
From: [email protected]
To: [email protected]
Subject: How to print date & time in photos
I think there are (various) Scripts about for that.
For example addExifDate1.5.jsx:
http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&extid=1346521
One should be able to adapt it to include the time.
You could ask in the Photoshop Scripting Forum or http://www.ps-scripts.com/
>
Maybe you are looking for
-
If the space of the windows storage space server is full, is it possible to setup another windows storage space server and combine the new one to original storage pool?
-
Any way to recover disappeared stickies??
This might not be the right place for this question, but I'm not sure where it should be. I had a bunch of important notes saved in Stickies. (Not the best place, I know..) I quit the application for a while, which I've done before with no problems,
-
Json PUT method business service invoke via OSB
Hi, I have to invoke business service that takes input as json object. I have followed following steps to create the project. 1. I have setup business service with "Messaging Service", and selected TEXT as request and response. 2. Created proxy servi
-
How to establish WS Security for BPEL processes running on Web Logic
We are running SOA Suite 10.1.3.4 on Web Logic Server 9.2. I have built BPEL processes and now want to implement WS Security for them, "Wssp1.2-Wss1.0-UsernameToken-Plain-X509-Basic256.xml" in particular. Have been researching but could not find any
-
SBO crystal add-on - can it connect to non SBO databases
we succesfully installed crystal ad-on for SBO with 2007A version. it runs crystal reports that query data from SBO databases. but we cannot get reports that query data from other databases (not SAP databases) to work? Has anyone tried using crystal