How add an time to date function
Hai all
How to add time to date function
My table called Daily_attend
Fields are
Name varchar
Empcode num
Intime date
Outtime date
Attend_date date
So now i can calculate the working Hours of an employees by subtracting
Outtime -Intime
I have fixed the intime as 0815 after 0815 coming will be account to late
So when the shift start late by 50 min now i need to add 50 min to the to start time
so the intime of all employee should be subtract with 0905
Thanks In Advance
Srikkanth.M
Are you looking for something similar?
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL> create table test1(intime date, outtime date, empid integer, idein number);
Table created.
SQL> insert into test1 values(to_date('12-Mar-2010 08:15:00','DD-Mon-YYYY HH24:MI:SS'), to_date('12-
Mar-2010 18:15:00','DD-Mon-YYYY HH24:MI:SS'),101,null);
1 row created.
SQL> create table test2(late_mins integer);
Table created.
SQL> insert into test2 values (40);
1 row created.
SQL> update test1
2 set idein = to_number(outtime-(intime+(select (late_mins/60)/24 from test2)))*24*60
3 where empid = 101;
1 row updated.
SQL> select * from test1;
INTIME OUTTIME EMPID IDEIN
12-MAR-10 12-MAR-10 101 560
SQL>
Similar Messages
-
How do I add a time and date stamp onto my pictures?
Can anyone tell me how to place a time and date stamp on all my pictures?
DTRAND wrote:
How do I go about creating a script, how do I run it, and where do I run it
(ie: exactly the steps)... sorry I am new to this.
You don't need to learn scripting. Just ask in the scripting forum if they can help you.
They will point you to an existing one or might even do one for you.
http://forums.adobe.com/community/photoshop/photoshop_scripting -
I have a Column that is defined as "DATE".it also Contains Time.........
I want to Get the Time only....so when i am using this
to_date(var_date,'hh12:mi:ss PM'),it is giving me date also and when i am using this
to_char(var_date,'hh12:mi:ss PM') then it is giving me all values similar to one of the top values in Column....
Then i Used EXTRACT function as
Select EXTRACT(HOUR FROM VAR_DATE).......
THEN IT THRWOING ERROR.......INVALID EXTRACT FIELD FOR EXTRACT SOURCE........
pLZ HELP HOW TO GET TIME...................................ONLY WITH AM AND PM......
Thanks in AdvanceHi,
to_char function should give the result as expected.
SQL> select to_char(sysdate, 'hh12:mi:ss PM') from dual ;
TO_CHAR(SYS
11:39:16 AM
SQL> select to_char(sysdate, 'hh12:mi:ss AM') from dual ;
TO_CHAR(SYS
11:39:32 AM
SQL> select to_char(sysdate,'hh:mi:ss') from dual ;
TO_CHAR(
11:40:04
SQL> select to_char(sysdate,'hh:mi:ss am') from dual ;
TO_CHAR(SYS
11:40:18 am
SQL> select to_char(sysdate,'hh:mi:ss pm') from dual ;
TO_CHAR(SYS
11:40:31 am
Thanks,
Siva -
How to add a time characterstic(date) to already loaded cube??
Hi All,
We have a cube loaded(by daily deltas) for more than two years now, how can we add a date to this cube, what are the possibilities??
1. do we need to delete all data,add that date ,reload??( quite tedious time consuming ,out of option for now)
2. jut add that date to new dimension, load from now on?? but we may need data from past for that characterstic.
3. if we copy that cube to another cube, add that char to old cube, then reload data from copied cube to old cube. is it possible to load all the data for that new filed for last two years??
Please let me know the successful solutions as iam doing it in production system.
Regards,
Robyn.Hi Eric,
ya that might be possible,but that charaterstic cannot be derived from the data present in cube as it needs to be derived from R/3 by changing the extract program of that cube.
the plan is to create new cube with similar structure of old one plus this new date field,populate this new cube for say required years data, then generate query as using these two cubes in multiprovider.
do u have any alternate solution for this
Regards
Robyn. -
Time and date function, how to use?
Hello everyone,
I want to know that how can we make use of these two system functions SY-TIMLO, SY-DATUM ?
What should i write in data? pbo? pai?
Should i write something like this in data?
DATA: Ok_date TYPE SY-DATUM.
DATA: Ok_time TYPE SY-TIMLO.
What should i write in pbo and pai and should i need to make changes in screen elements? do i need to create one?
Please guide and explain with an example. Thanks a lot for writing back.
Regards,
Lucky
Moderator message - Please ask a specific question - post locked
Edited by: Rob Burbank on Aug 4, 2009 12:14 PMHi,
create two variables in the top include..
data :P_date type Sy-datum default sy-datum,
p_time type sy-uzeit default sy-uzeit.
Next go to screen and enter table syst...
and select datum and uzeit and drag to screen..
and rename the field to p_date for syst-date and p_time for syst-uzeit.
Prabhudas -
How form opening time get data as per given date
my promlem is how use between funciton in form opening where clasee for date
i use this code but not give me result
such as
:global.newparty :=0;
declare
vtypev varchar2(15);
BEGIN
vtypev :='BPV';
set_block_property('voumaster', default_where, 'where vtype='||''''||vtypev||''' and entdate between '01-07-2005 and '30-06-2006');
go_block('voumaster');
execute_query;
set_block_property('voumaster', default_where, '');
END;
please send me idea how i get data only given date
thank
aamirthank for your reply
sir i have date in global variable
how i put variable in your code
such as deptono , date1 and date2 are global variable
SET_BLOCK_PROPERTY('EMP', DEFAULT_WHERE, 'deptno = :deptno AND hiredate BETWEEN '||''''||to_date(':date1','DD-MON-YYYY')
||''''||' AND '||''''||to_date(:date2,'DD-MON-YYYY')||'''');
how i put variable in your code
thank
aamir -
How record exact time and data
Now I have labview and DAQ card E6251, I want to get data and exact time together and then write them to file. Would you like to give me some sample VI or suggestion?
Thanks,Hi Sean,
The place to start with data acquisition and LabVIEW is the NI Example Finder.
This can be found by the following method:
1. Run Labview
2. Click the Help menu button
3. Click the Find Examples button
4. On the right hand side; Click Hardware Input/Output->DAQmx->Analog Measurement->Voltage->Cont Acq&Graph Voltage - Write Data to File (TDMS).VI
When this example runs, click the Physical Channel drop down menu near the upper left hand corner on the front panel, select your
physical channels to sample.
Click the Run button to begin acquiring data, a dialog box will prompt you to enter a filename and location for saving the TDMS file.
When you stop the acquisition the TDMS File Viewer will open the file for examination.
After playing with this example for a bit, please re-read the comments that Dennis K. and others have made earlier in this thread, everything will make more sense at that point.
Please post back to this thread if you do have further questions regarding your application.
Best regards,
MatthewW
Applications Engineer
National Instruments
Message Edited by Matthew W on 08-29-2007 09:20 PM -
Data Federator Universe Date Functions
Hi,
I created a Data Federator Universe from target tables (Source Tables from: Sql Server 2005 and Oracle 10g). Now, I want to create a object in the universe: "Days between 2 dates"(coming from 2 different target tables). I don't see any other date functions other than CURDATE(). How to create my object?
Alternatively, Can I create a caliculated column in the existing target table? For Example, I want to create a new column "Days between 2 Dates" from 2 different tables by using a formula in Default mapping of the target table.
Thanks & Regards,
PeterHi Amit,
Thanks for your reply.
Ok. So, Universe on top of Data Federator has limited functionality.
And, other option you mentioned is on report level. I am creating an adhoc universe and I have few objects which will calculate days between 2 dates coming from 2 different tables.
But, how can I achieve this on Data Federator level. I have no function there to find Days Between 2 dates. I see lot of time and date functions but not the one I required. Also, I added a column in the target table and tried to apply the formula there in the default mapping area. But, I see only the selected target table. I need another date column from another table, which is not displayed in the default mapping area.
How can I achieve this?
Regards,
-Peter -
How the loading time populate in a standard dilivery
Hi
I got an issue in which I have to find out that one delivery does not having the loading time .
I want to know how the loading time and date is being populated.
Please reply ASAP.
thanks in Advance
GauravHi,
if You have no results in "Where is used" list, then it is called dynamically
- problably information about this is stored in a database (somewhere...).
I suggest following steps:
1. Put breakpoint with Your user id in PAI module (if You know / are able to guess t-code which uses it).
If You get debugger screen - check the call stack
2. In PAI module write few instructions to store t-code, report, etc. (or just whole SYST structure) in Z-table.
After some time check if the screen exit was called and from which transaction.
3. You can also store in PAI module whole call stack in Z-table using SYSTEM_CALLSTACK function module.
Regards,
Przemysław -
Customized java date function in heart of JDK
hi
how can i force JDK to return Persian or Arabic date instead of christian era?
i have an application in java platform. i couldn't change code of program, because source is closed and is not reachable. i want to know how can i use a wrapper for date function in java? if it is possible how can i replace java date functionality with my desired date function?
thanks for any helpThanks for your help.
however i looking for one thing, similar a function wrapper that can substitute original method.
I don't know where the application use date function and how calls it. so i think that it is possible to change behavior of java itself. -
Running Total (or) Moving Sum (or) Rollup using Date functions
I have to pass the Begin date and End date using prompt in my application (for daily basis for one month, monthly and yearly).
How can i use the date function for Rollup the days values(running total) for the below mentioned SQL
Table.Date field (@Prompt('Begin_Date','D',,mono,free) and @Prompt('End_Date','D',,mono,free)
@prompt automatically takes the begin date and end date.
I need the sql for rollup(running total) on daily basis for one month say jan 1 to jan 31.
Any idea?Check the Oracle on-line documentation on the ROLLUP option of the GROUP BY clause. It should be able to give you running totals.
-
TIM Interfaces data conversions
Hi,
I appriciate you.
Pl. tell me what is "TIM interfaces" and
how to do TIM interfaces data conversions
thanks
ACHi Arun,
This is a very vague question, without any information about the context of your question. But what I did was to go out to google and type in TIM interfaces.
I think this may be Textile Integrated Manufacturing(TIM) application. The link below takes you to a pdf document about the product.
http://www.infics.com/collaterals/Datatex.pdf
I don't know if it has any relevance to you. Check it out or if it is not what you are looking for, please post more information as to how you heard about it and in what context.
Here are the Google search results
http://www.google.com/search?sourceid=navclient&ie=UTF-8&rls=GGLD,GGLD:2005-09,GGLD:en&q=%22TIMinterfaces%22
Srinivas -
Putting time and dates on pictures
does anyone know how to put time and dates on pictures that are being taken?
Without knowing what exactly is the difference it is difficult to "advice on what PSE9 is doing". Can you post what is the "correct" date on the photo in the camera and what is the date now in PSE. I would expect some time difference between the two because the timezone may be different in the camera and the timezone on your computer might also be different but correct t because of auto-update in computers using the Internet.
To give you an example, if your timezone is Central Time (US and Canada) then 10:00 hours on your photo will have a different time when moved to a computer with timezone set in Dublin, London, Lisbon or Edinburgh. the difference will be 6 hours. Apart from this I can't think of anything else. -
How do you add the absolute time and date to a spreadshee​t file?
I am creating a spreadsheet file, and I want to write the absolute time and date to its first column. Does anybody know how to do this?
Thank You,BrianL answer is still valid !
Attached is an example file with an express vi configured to use the absolute time generated from a get time/date node.
Chilly Charly (aka CC)
E-List Master - Kudos glutton - Press the yellow button on the left...
Attachments:
Save with absolute time.vi 135 KB -
Timing Function in IDM ; how to set "timer"
I have a question which has not been discussed here before (or, if it has, I haven't noticed).
It concerns the use of a TIMER function in IDM.
I am pretty sure IDM has one; just not sure how to implement this.
Let's say you want to evaluate the time difference between when a person logs into the system, and today's (current) date? If a certain amount of time has elapsed, send that person an Email Notification?
Or : someone has not performed a certain required action; after a certain time, send them a "*notice*" (could also be an email notification).
Or, even more complex : send 2 or 3 such notifications, at regular intervals; and, if the person does not respond, then IDM will automatically perform an action of its own (maybe, disable that person's account, etc)
Basically, my point is : does IDM possess a certain "*internal clock/timer*" which can be activated, to monitor certain activities; and, based on how much time has elapsed, perform a certain action ??
If yes, then how can I configure and/or implement such a function?Going with the deferred task example you'd have to do something like this:
(Again, it doesn't have to be a deferred task.)
<Action id="0" name="Add Deferred Task" application="com.waveset.session.WorkflowServices">
<Argument name="op" value="addDeferredTask"/>
<Argument name="type" value="User"/>
<Argument name="name" value="$(accountId)"/>
<Argument name="subject" value="Configurator"/>
<Argument name="task" value="Your Workflow Name"/>
<Argument name="date"> <!-- date the deferred task is to execute -->
<ref>date</ref> <!-- precalculated date -->
</Argument>
<Argument name="date_task_added">
<!-- add the time the task was actually registered -->
<invoke name="getTime"> <!-- calculates "now" -->
<invoke name="getInstance" class="java.util.Calendar"/>
</invoke>
</Argument>
... other deferred task arguments here
</Action>IDM will wait until the date the task is to be executed, see the "date" argument. When IDM actually executes the deferred task (it may be a long time after it was originally scheduled to execute if there's been a delay or an outage or whatever) you'll have a variable in your workflow called "date_task_added" that should be a java date object. (Or a string, I can't remember. If it is you'll just have to convert it, no biggy.) That will give you the date the deferred task was registered. Within the workflow you can build another date object using the exact same code to calculate "now".
From there getting the time difference between both objects is a simple matter of getting the milliseconds for each and doing the math to get the difference. That's just one way, there's dozens of ways of calculating time differences with the java date and calendar objects.
Note: untested code. You may have to tweak it to work properly.
Maybe you are looking for
-
Max no columns allowed in a table
i want to know how many columns are allowed in a table.maximum no of columns in table.
-
Row Level Delete in Advanced Table - Urgent
Hi, I have an advanced table with a delete icon as the last column in Create Records kind of form. If the user clicks on this icon then the particular row should be deleted where as the rows above and below it should remain as they are, with their va
-
PDF alt text displays as a roll over
When I generate PDFs, the alt text is displayed when I roll over the figure to which the alt text is assigned. Is there any way to keep the alt text but turn off the roll over effect? I have a customer who finds the roll over effect bothersome. thank
-
Re: ORACLE/LINUX HAS SERIOUS BUG! | no O_SYNC on redo logs
To StE. Michael, how do you traced LGWR process? I try >gdb oracle PID and I attached to LGWR process. But how do you achieved the trace file as result? Regards, Mark null
-
A Coke or a cup of coffee doesn't count.
Get up nice and early. All of us have bad mornings, too, but it's important to have a good morning so that you can feel good about yourself. Just follow the simple steps below. Don't wake up too early, but you should wake up early enough. Waking up b