Getting Date and Time
Hi Gurus,
Issue: At present the Shipment Execution time is defaulting to Local Time but the requirement is to always populate Eastern Standard Time (EST). Right now if the shipment creates in US West coast, shipment Execution Date and Time populates with that local time but I need to populate EST.
I need a function module which will take input as 'Time Zone' like EST and return Date and Time (OR) the input could be 'Country' and State and return the local time.
Thanks in Advance.
Regards,
ananth.
Here is your solution.
The function module IB_CONVERT_INTO_TIMESTAMP is used to convert the time to the GMT. The input parameters are DATE, TIME and the TIMEZONE(user's time zone, default value SY-ZONLO). The output parameter is the timestamp in GMT.
The function module IB_CONVERT_FROM_TIMESTAMP is used to get the time in required time zone. The input parameters for this are the timestamp obtained from the above function module and the time zone, to which the time needs to be converted.
The output parameters are the date, time in the required time zone.
Similar Messages
-
How do I get date and time component from a DATE object?
Hi All,
I need to get date and time separately from a DATE object, does
anyone know what function I should call? GetDate()? GetTime()?
I need this in a SELECT statement.
Thanks in advance and looking forward to your early reply.
Regards.
Gladywin
30/11/2001Hello,
See following SQL.
select to_char(sysdate,'dd/mm/rrrr') today_date,
to_char(sysdate,'hh24:mi') now_time
from dual
Adi -
Get date AND time to show in the menu bar
What is that technique to get date AND time to show in the menu bar please?
Install iStat Menu
System Preferences -> iStat Menus -> Date & Time
\[X] Show Date & Time
Format .... \[Edit]
(*) Custom (drag tokens to build a custom format)
Drag a light blue token into the edit line below the token selections. If you want a space a colon a dash, etc... just type that character(s) before after draging a token into place.
I created: 9:35 PM Sat 1-Aug-2009
You can create anything you like in any order you like.
The other alternative (if you happen to be a fan of the Unix strftime() function) would be to use the % formatting characters in the Expert time format expression box. Use the Terminal "man strftime" to find out all the available % formatting codes.
But I think the Custom Drag & Drop section is the easiest to use.
However, if this doesn't work for you, then I guess it is just a case of "Your Mileage May Vary". -
Getting Date and Time to Show in the Menu Bar
I have the OS setup to set the date and time automatically and the clock set to "show date and time in the Menu Bar. I have the international set up for the Day of Week, Month, Date and Year, but the menu bar only shows "Fri X:XX:XX PM" is there any way to get it to show me Fri May XX, 2008 X:XX:XX PM"?
Thanks for any help.
JohnI use iClock too. It is much more customizable than the Time & Date clock provided with the system. I have used it for several years and it has been very stable for a third-party application.
Although I have only used it for a couple of months, I also really like another third-party application you may like, to put weather conditions on the menubar called WeatherDock (freeware). It accesses Weather.com to provide the current temperature (of course) but it can include several other weather conditions (depending on how much space you have on your menubar). In addition to temperature, I have it show the weather condition (currently partly cloudy, typical in Houston), wind direction and speed (I ride a bike to the office and this tells me if I’ll be fighting it or aided), and humidity (also a Houston favorite). It will also speak the weather conditions when they change. -
Getting date and time format through RIDC call
Hello,
i want to set date and time features to my document , how can i get the date and time from RIDC call
Regards
Mayur MitkariHello
I am performing this operation for getting date
username = Util.getInstance().getCurrentUser().toString();
IdcClient myIdcClient = Util.getInstance().getUCMConnection();
IdcContext myIdcContext = new IdcContext(username);
DataBinder binder = myIdcClient.createBinder();
binder.putLocal("IdcService", "COLLECTION_GET_COLLECTIONS");
binder.putLocal("hasCollectionID", "true");
binder.putLocal("dCollectionID", parentNodeID);
idcResponse = myIdcClient.sendRequest(myIdcContext, binder);
DataBinder serverBinder = idcResponse.getResponseAsBinder();
DataResultSet resultSet = serverBinder.getResultSet("COLLECTIONS");
folderInfoList = new ArrayList<String>();
resultInfoList = new ArrayList<List>();
Iterator itr = resultSet.getRows().iterator();
while (itr.hasNext())
String dCreateDate = dataObject.get("dCreateDate").toString();
but i am getting date in this format "2012-05-22 08:26:52Z"
if i want the date in local timezone what can i do
Regards
Mayur Mitkari -
How to get Date and time of the server?
Hi, How can we get the date and time of the server while submitting a form using JSP? i.e I need the date and time , when the user is submittig a registration.
UmaUpon receiving your data in your servlet, you can do the following to get the date,
Calendar calendar = Calendar.getInstance();
int dd = calendar.get(Calendar.DAY_OF_MONTH);
int mm = calendar.get(Calendar.MONTH) + 1;
int yyyy = calendar.get(Calendar.YEAR);
String dd_mm_yyyy = dd + "/" + mm + "/" + yyyy;
To get the time, simply take a look at the Calendar API to get the corresponding field. -
Function Module to get Date and Time out of Timestamp
Hi,
Source system timestamp field CREATED_TS of Type DEC-15
BW PSA data in format 20.140.707.105.948
In DSO, I have created two target InfoObjects; one for Date and one for Time.
In transformation from PSA to DSO, in field level routine, I want to split timestamp into Date and Time.
There is a function module CACS_TIMESTAMP_GET_DATE in source system but it is not available in BW. Another function module ADDR_CONVERT_TIMESTAMP_TO_DATE which is available in BW but returns only Date.
Does anyone know a function module in BW which takes Timestamp (PSA data in format 20.140.707.105.948) and returns Date and Time.
Much better would be a FM which take timestamp and also Timezone and returns Date and Time.
Thanks
AhmadTimestamp to date time conversion (with time zone) is built into ABAP. Why use a function module?
Read the ABAP help on CONVERT. -
How to get date and time? pls help~ ~.~
i tried to get time and date, but dint noe hw to get it.. anyone knows hw to get it? pls help mi ~.~
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
import java.util.Calendar.*;
public class Login extends JFrame
private JFrame mainFrame;
private JPanel p1;
private JLabel lblUserId, lblPassword;
private JTextField tf1, tf2;
private JButton btnLogin, btnClear;
public Login()
mainFrame=new JFrame();
mainFrame.setTitle("Student Attendance System");
mainFrame.setSize(400,200);
mainFrame.setLocation(100,100);
mainFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
p1=new JPanel();
p1.setLayout(new GridLayout(3,2));
lblUserId=new JLabel("User ID");
lblPassword=new JLabel("Password");
tf1=new JTextField(20);
tf2=new JTextField(20);
btnLogin=new JButton("Login");
btnLogin.addActionListener(new ButtonHandler());
btnClear=new JButton("Clear");
btnClear.addActionListener(new ButtonHandler());
p1.add(lblUserId);
p1.add(tf1);
p1.add(lblPassword);
p1.add(tf2);
p1.add(btnLogin);
p1.add(btnClear);
mainFrame.add(p1);
mainFrame.setVisible(true);
//inner class event handler
public class ButtonHandler implements ActionListener
public void actionPerformed(ActionEvent evt)
Calendar rightNow = Calendar.getInstance();
if(evt.getSource()==btnLogin)
String login=tf1.getText();
String password=tf2.getText();
JOptionPane.showMessageDialog(mainFrame, "Student ID "+login+" Login at " + rightNow ,
"Response", JOptionPane.PLAIN_MESSAGE);
if(evt.getSource()==btnClear)
tf1.setText("");
tf2.setText("");
public static void main(String []args)
JFrame.setDefaultLookAndFeelDecorated(true);
Login l=new Login();
}First off, from http://www.catb.org/~esr/faqs/smart-questions.html
h1. How To Ask Questions The Smart Way:
h3. Write in clear, grammatical, correctly-spelled language
More generally, if you write like a semi-literate boob you will very likely be ignored. So don't use instant-messaging
shortcuts. Spelling "you" as "u" makes you look like a semi-literate boob to save two entire keystrokes. Worse: writing like
a l33t script kiddie hax0r is the absolute kiss of death and guarantees you will receive nothing but stony silence (or, at best,
a heaping helping of scorn and sarcasm) in return.
Next, use a SimpleDateFormat object. You can use it directly or use a date format string to tell it how you want your date string formatted. The API will give you lots of information on how to use this. Note that you'll have to translate the Calendar object to a date object via the getTime() method:
class ButtonHandler implements ActionListener
public void actionPerformed(ActionEvent evt)
Calendar rightNow = Calendar.getInstance();
//** use SimpleDateFormat
SimpleDateFormat dateFormat = new SimpleDateFormat();
String dateString = dateFormat.format(rightNow.getTime());
if (evt.getSource() == btnLogin)
String login = tf1.getText();
String password = tf2.getText();
JOptionPane.showMessageDialog(mainFrame, "Student ID " + login
+ " Login at " + dateString,
"Response",
JOptionPane.PLAIN_MESSAGE);
if (evt.getSource() == btnClear)
tf1.setText("");
tf2.setText("");
}Finally, when posting your code, please use code tags so that your code will retain its formatting and be readable. To do this, either use the "code" button at the top of the forum Message editor or place the tag [code] at the top of your block of code and the tag [/code] at the bottom, like so:
[code]
// your code block goes here.
[/code] -
Is there a way to get date and time in JAVA without using sysdate and time.
Hi Everybody,
There is a requirement in my Application. The requirement is I need to instal an application and it need to expire after certain period (say 1 year).
And after that it should become useless for anyone enjoying the benefits of that. I need to know how to calculate the timeline for calculating expiry date.
<ul><li>Ø We can't rely on system date, since user can modify that.</li>
<li>Ø We also can't use counter because for that system should execute in 24x7.</li>
<li>Ø Also there is no internet connection to fetch the current date from the global server.</li>
</ul>
So if anyone has any idea to accomplish post your suggestions to me.ejp wrote:
I strongly suggest you take legal advice before implementing such a feature. The purchaser, or licensee, of such software has reasonable expectations and legal rights which are unlikely to be met by a brute-force scheme like that. You don't want to end up in court ...This exact situation happened at my previous employer--although it didn't go to court.
We contracted out to a 3rd party vendor to write a library for us. It was delivered in stages and paid for in stages. After we received the last delivery, but before we'd made the final payment, we had our first full-system demo for our first client/partner. Shortly before the demo was to begin, we brought the system up, and it immediately crashed. We saw a "This software is expired" type message in the log. While it's not uncommon for software to have an expiration date, our big issues with it were 1) there was nothing of the sort written into the contract, and 2) The expiration was a hardcoded "if date > whatever, System.exit" as soon as the class was even loaded.. It would've been different if trying to actually use the class caused an exception, but killing the JVM just for loading the class was not cool.
I decompiled the class, found the offending code, commented it out, recompiled, and we were off. In the meantime, our VP of R&D called the vendor to deliver a new jar file, which they did quite quickly. So, a) it was inconvenient but not difficult for me to get around the technical "solution," and b) that was as stop-gap measure--we still paid them for the software. -
Getting Date and Time into a single field
Hi,
I am loading from a flat file which has field Start time which comes in the format of MM/DD/YYYY HH:MM:SS ( Hour: Minute: Second). How can i bring this and store this in BW as one single field. Even in the source it is a single field.
I would also need to use this info object as a key in my ODS
Please advise,
Thanks
Rashmi.
Edited by: Rashmi Vellampalli on Oct 8, 2008 7:32 PM>
Rashmi Vellampalli wrote:
> Hi,
>
> I am loading from a flat file which has field Start time which comes in the format of MM/DD/YYYY HH:MM:SS ( Hour: Minute: Second). How can i bring this and store this in BW as one single field. Even in the source it is a single field.
> I would also need to use this info object as a key in my ODS
>
> Please advise,
>
> Thanks
>
> Rashmi.
>
> Edited by: Rashmi Vellampalli on Oct 8, 2008 7:32 PM
You should user an infoObject/field for tyoe CHAR, length 24. Once you read this, in transfer rules, write an ABAP Code to seperate Data, time and AM, PM. Once you read all the characters from your source, its very simple ABAP to seperate them in Transfer Rules.
Uday-Ram Chamarthy -
How to get server date and time using java code
Hi,
I'm new to java. I have one doubt about getting date and time of the server. can anyone give some sample code to get that.
thanks in regards
Gopi.you need 2 things
1. something on the application server which exposes the servers time/date
2. something on the client which makes use of your time service
for instance, you could write a ServerTimeServlet that clients can call to get the time according to the server. or, if you've got a database in the server, often database software will provide a Time procedure or similar that does this, so you can use a simple SQL query to get the latest time -
Insert date or time or both in to a file name
I would find it very usfull to be able to automate the prosseses of inserting the date ( in year mouth day order ) and the time in to a file name. This would allow the tracking of email saved as text in a sequential order. ie the file name would read subject date time. Is there a way of doing this with apple script ? I can not find any " get current date" or "get current time" comand. Is it posible to use apple script to open a sutable application and get the date and time from there ? anybody solved this ?Is it the current date you want?
There are example AppleScripts in /Applications/AppleScript/Example Scripts. Under the subfolder Info Scripts is one that shows how to get date and time. Under the subfolder Finder Scripts are a number of rename scripts, including "Add to File Names".
Probably there are ways to change the format using the AppleScript current date command, but the shell command date is particularly flexible. For example, try this AppleScript:
set the time_stamp to (do shell script "date +%Y%m%d-%H%M%S")
display dialog time_stamp
Replace the "display dialog" line with code to change the file names. If you can read Unix man pages, see man date and man strftime for details on formating the date command. -
Automatic file generation using system date and time
Hi guys,
Iam trying to generate a path for file creation automatically using System date and time. I am running into errors with respect to special characters in filename. I am trying to parse the string to get date and time without the '/' and ':' but have not been successful. is there a better way to do it? Please help! I am trying to avoid a dialog box for user to enter a filename.
Thanks!
V
I may not be perfect, but I'm all I got!
Solved!
Go to Solution.here is a little experiment .... building the path out of %m (month) %d (day) %(year) type stuff might help.
Attachments:
putting time in path.vi 7 KB -
Find record insert date and time in a table
Hi All,
I want to get record insert date and time in a table. There is no datetime column in my table. Are there any possibility to get date and time for each record?
Thank YouThats not easy. If your transaction info still resides on active portion of the log you can use fn_dblog to read out the time at which the transactions occurs. This is useful only if you try it shortly after transaction.
the code would look like this
SELECT *
FROM fn_dblog(null,null)
WHERE [Transaction Name] LIKE 'INSERT%'
OR [Transaction Name] LIKE 'UPDATE%'
Also see
http://www.mssqltips.com/sqlservertip/3076/how-to-read-the-sql-server-database-transaction-log/
http://solutioncenter.apexsql.com/read-a-sql-server-transaction-log/
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs -
I'm a relative newbie still having issues with getting date and time stamps on my printed documents. I use Preview, Pages, Numbers and also tend to print to PDF a lot, which I am opening in Preview.
I have found an "Insert" ability in Pages but for some reason it appears to only give me the date that I inserted the Timestamp and despite thinking that I understood that this would update itself when I re-open the document it does not seem to be doing this.
Can anyone help me figure out what I am doing wrong and/or what my options in Mac for putting the following on a document:
A. DATE and TIME /printed/
B. NAME of document with LOCATION (I assume this is software specific?!)
Thanks for any (further) help with this.
- Jonmenu Insert > Date_time
then apply what was described by Jerrold in his message above
Helpful AnswerRe: DATE and TIME and PATH stamps
22 nov. 2011 18:05 (in response to hotwheels 22)
Or simply double-click the inserted date-time (CAUTION : I don't know if the double click apply with every system or if it's dedicated to Lion).
As far as I know, the inserted date behaves the same in header, footer, text box or main text layer.
Yvan KOENIG (VALLAURIS, France) mardi 22 janvier 2011 20:25:12
iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
My iDisk is : <http://public.me.com/koenigyvan>
Please : Search for questions similar to your own before submitting them to the community
Maybe you are looking for
-
G5 shuts down when Portable external drive connected to Fire wire port
Hi, I hope somebody can help me. I have a 100G lacie portable external HD that I use to back up my files regularly. It worked until today, I plug it in, I was able to save some files, and then the computer shut down. I restarted it and it did the sam
-
How to change the attributes of GUI CONTROLS in my own program.
hi all, i just want to change the attributes of GUI CONTROLS in my own program. for example ` How to set an ICON on my GUI BUTTON in the program? so what's the mapping between CONTROL in the SCREEN PAINTER and variable in the program?
-
Snow leopard 10.6.7 cool release
This is the deal i try to install snow leopard on my computer specs: intel core 2 duo 2gb ram OS-OPERATING SYSTEM:LEOPARD 10.5.8 WHEN I BOOT IN TO THE INSTALLATION ON START UP I GET MY INSTALLATION AND EVERYTHING BUT WHEN I HIT THE LANGUAGE ITS START
-
Why does it tell me my Credit card info is invalid when clearly it is right
-
Why can't I choose the no payment type option
I don't have a credit card to enter into the payment section but its not letting me choose none so I can't update any of my apps or download any free ones