Converting time one format to another

Hi Friends,
I have a small problem in converting time..
Actually In my program i am getting time like this ' 080000 ' but that should be converted to 8.00 hrs
if i give time is ' 085215 ' means 8 hrs 52 min 15 sec so...it should be changes to 8.52.15
Is there any function module is change this format..pls tell me
thanks,
laxmi

Hi,
it can be acheived by writing a single write:
Eg:
DATA TIME TYPE T VALUE '154633'.
  WRITE (8) TIME USING EDIT MASK '__:__:__'.  "Output: 15:46:33
if you want with dots, then replace dots by colon in write iteself...
WRITE (8) TIME USING EDIT MASK '__.__.__'.  "Output: 15.46.33
it will fullfill ur requirement...
Hope it helps!!
Regards,
Pavan
Edited by: vishnu Pavan on Mar 23, 2009 8:16 AM
Edited by: vishnu Pavan on Mar 23, 2009 8:17 AM

Similar Messages

  • Can I convert tracks from one format to another so that the converted tracks appear in the various playlists of the originals?

    I have a large number of tracks which I should like to convert from one format to another (aiff to Apple lossless).  These tracks are distributed in a large number of playlists.  Can I convert a track or tracks from one format to another so that the converted track appears in the playlist of the original track without going through a laborious and error-prone process of converting each track individually, determining the playlist of the original, and allocating the converted version to the playlist (or playlists, because in many cases the original track exists in more than one playlist) of the original track.

    I do not believe iTunes will do this.  The files created are essentially new media files, not regarded as replacements for old files.  There may be ways to trick iTunes if you are good at editing library files but that would be more trouble than it is worth.
    You can check the site below but I do not recall having seen such a script.
    Dougscripts - http://dougscripts.com/itunes/scripts/scriptcount.php?sortBy=Name&op=y - Many itunes scripts
    If you're into writing Applescripts you could try it.

  • Converting  audio file from one format to another format

    Hi Friends,
    Is it possible to convert the audio file from one format to another format(*.mp3 to *.wav file and vice versa)?
    If so, please guide me on the same.
    Thanks in advance,
    Kavitha Anbazhagan

    It's been covered here already, but take a look here:
    Converting CDs to iTunes Audiobooks
    Just read the parts after the section on importing from CD.
    Regards.
    Message was edited by: Dave Sawyer

  • How to convert Time stamp format in CR

    Dear all Expert,
    I have a question. I have a field in my CR which is date time. It show 24.03.2011 03:30:00 in the tables. But when i drop this field in my CR, it become 20,100,906,080,000.00. How to convert it to 24.03.2011 03:30:00 in CR?
    Thank You.

    Hi Alex,
    If cdatetime won't work, try the following by creating a formula . Note : replace your time with database date field i.e. date_4.
    WhilePrintingRecords;
    Stringvar date4:=totext('24.03.2011 03:30:00');
    Numbervar yr;
    Numbervar mon;
    Numbervar dt;
    numbervar hh;
    numbervar mm;
    numbervar ss;
    yr:=tonumber(mid(date4,7,4));
    mon:=tonumber(mid(date4,4,2));
    dt:=tonumber(left(date4,2));
    hh:=tonumber(mid(date4,12,2));
    mm:=tonumber(mid(date4,15,2));
    ss:=tonumber(mid(date4,18,2));
    cdatetime(yr,mon,dt,hh,mm,ss);
    Thanks,
    Sastry

  • Converting odd date format to another format

    Hey all,
    I have a date format that looks like this: "2006-08-29T00:00:00.000Z"
    so i have written this code:
    DateFormat dFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss:SSSZ");when i try to do
    dFormat.parse("2006-08-29T00:00:00.000Z");i get this: java.text.ParseException: Unparseable date: "2006-08-29T00:00:00.000Z"
    Does anyone know what i am doing wrong?

    I'm still getting it:
    Here's my code now:
    String temp = "2006-08-29T00:00:00.000Z";
             DateFormat dFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss:SSS'Z'");
             try {
                   dFormat.parse(temp);
              } catch (ParseException e1) {
                   // TODO Auto-generated catch block
                   e1.printStackTrace();
              }

  • Convertion time with quick time pro

    I have a couple of snowboarding films that I have tried to convert to play on my ipod video. The problem is that one of the videos, about 300 megs took about 30 hours to convert and when played on my Ipod has no sound. I am trying to convert another one and its at 34% 16 hours in. Is there any way that this process can be expidited with either a change in settings for quicktime pro or use of another program?
    HELP?

    The problem is that one of the videos, about 300 megs took about 30 hours to convert and when played on my Ipod has no sound.
    With regard to the "no sound" problem, as has been pointed out numerous times already, the QT Pro application is A/V multi-track based. That is, it is designed to work with movies in which there are separate audio and separate video streams of data. If you check, you will like find that your source movie is probably some form of "muxed" (MPEG1, MPEG2, VOB, some AVI, AVI MJPEG, etc) format in which bocks of audio and video are intersperced in a single stream of data. (I guess another way of saying this is to describe QT and QT-like applications as "frame" based while muxed files are "packet" based for the purpose of sychronizing audio and video information.) When converting muxed file types it is best to use an MPEG based application like Videora iPod Converter (free) or Video Vault to Apple iPod Converter ($$) Windows only applications.
    Is there any way that this process can be expidited with either a change in settings for quicktime pro or use of another program?
    Yes, both alternatives are viable. If you are using the dedicated QT Pro "Movie to iPod (320x240" export option, you can halve you time by merely switching to the ""Movie to MPEG4" QT Pro export option and using the Baseline H.264 codec in the single pass mode. Further, if you switch to the MPEG4 code, you can cut the single pass H.264 conversion times in half (or a quarter in single pass MPEG4).
    However, I cannot urge you stronly enough to have more than a signle work flow for these conversions. Different converters use different strategies and sooner or later you are bound to come across a movie whose content simply refuses to convert using one program or another. Sometimes the problem can be fixed by simply modifying your "normal" settings. At other times it is simplier to just "switch" to another program with a "tighter" conversion strategy or that employs a faster "response" algoithm.
    Hope this helps...
    2.0GHZ G5/533MHz G4 DeskTop/400MHz G4 PB   Mac OS X (10.4.3)  

  • Converting / transforming one time format to another

    Hi Experts,
          i want to contvert time in format ex. 10:30:00 to a format without colon i.e 103000.  I tryed using Date Trans funinon by giving source as HH:mm:ss as source and target as: HHmmss. when tryed and tested  li i am getting error:  "Runtime exception during processing target field mapping"
    i am getting only time  to the XI box not the date.
    Thanks,
    Siva

    Hi Siva !
            This sounds very estrange to me, the formats that you specified is correct. The only situation that I know that TransformDate generates error(considering that the formats are correct, as I think that is your case), is when the source field is empty.
            Well, a single way to solve your need, and avoid the error that I mentioned above(when the source field is empty), is to use the replaceString function to replace colon(':') with empty(''), so, 10:10:00 will lead to 101000. I used this solution several times.
            I hope this helps !
            Best regards,
            Wilson
    Edited by: Wilson Santos on Jul 10, 2008 9:23 PM

  • Unsupported image format after moving from one project to another

    I scanned several thousands of images to my Aperture library. Went thru all of them providing adjustments to many of them, keywords to all of them and adjust date/time to all of them. All of the pics were visible, format is jpeg.
    This is a managed library (all pics within Aperture db).
    This morning started to restructure the project files (had three of them). After moving couple of hundred images to newly created project file I started seeing "unsupported image format" red screen after clicking the jpeg. 20-30% of the pictures clicked showed on viewer "unsupported image format".
    Tried regenerating the previews. Tried command-option start with first fix the preferences option. Then with rebuild option.
    Tried moving the pictures back to their original project file.
    No joy... Still 20-30% of the pictures show the "unsupported image format".
    Aperture 2.1.
    Amy other tricks I could try?
    Reported this to Apple aperture feedback of course.
    --h

    Link the two Macs together: there are several ways to do this: Wireless Network, Firewire Target Disk Mode, Ethernet, or even just copy the Library to an external HD and then on to the new machine...
    But however you do choose to link the two machines...
    Simply copy the iPhoto Library from the Pictures Folder on the old Machine to the Pictures Folder on the new Machine.
    Then launch iPhoto. That's it.
    This moves photos, events, albums, books, keywords, slideshows and everything else.
    +Note: there is no importing involved+
    The thumbs appear, but the images are added 2 or 3 times each and the events are all messed up.
    This happens when you import one Library to another, which you've done by drag and drop:
    Creating a black library and over writing the new with the old.
    Your problem is arising because of the Network Share. iPhoto needs to have the Library sitting on disk formatted Mac OS Extended (Journaled). Users with the Library sitting on disks otherwise formatted regularly report issues including, but not limited to, importing, saving edits and sharing the photos.
    Regards
    TD

  • How to convert data when transferring from one table to another

    I have two tables and these are the structure of the tables
    create table E1(
    ID NUMBER
    ,NAME VARCHAR2(30)
    , DESIGNATION VARCHAR2(30)
    ,GENDER VARCHAR2(10));
    create table E2(
    ID NUMBER
    ,NAME VARCHAR2(30)
    , DESIGNATION VARCHAR2(3)
    ,GENDER NUMBER); Now I want to transfer records from one table to another using a master tables where data are compared because the datatypes in tables are different
    The first one is a gender table to match the gender and convert
    create table Gender(
    E1 varchar2(10),
    E2 number);The second is for the designation
    create table Designation(
    E1 varchar2(30),
    E2 varchar2(3);How to match and convert the data so that it can be transfered.

    Peeyush wrote:
    Can we do it with the help of a cursor.
    All SQL executed by the database are parsed as cursors and executed as cursors.
    I mean I have to insert data in bulk and I want to use cursor for it.The read and write (select and insert) are done by the SQL engine. The read part reads data and passes it to the write part that inserts the data.
    Now why would using PL/SQL and bulk processing make this faster? It will reside in-between the read part and the write part being done by the SQL engine.
    So the SQL engine reads the data. This then travels all the way to the PL/SQL engine as a bulk collect. PL./SQL then issues an insert (the write part to be done by the SQL engine). And now this very same data travels all the way from the PL/SQL engine to the SQL engine for insertion.
    So just how is this approach, where you add extra travel time to data, faster?
    and i want to commit the transaction after every 50 recordsWhy? What makes you think this is better? What makes you think you have a problem with not committing every 50 rows?

  • Convert from WAV to AAC from one HD to Another HD

    Don't know if this has been answered before but here's my situation. I have all my iTunes music folder in one Hard Drive. All the files are in WAVE format. Now, I want to copy all of the files to an External Hard Drive and in AAC format. How do I do it exactly? Do I Import, Export? O
      Windows XP  

    You can import & convert in one step so only AAC files will be in the new library. No duplicates and nothing to delete.
    Copy /Music/iTunes/iTunes media/Music folder to an external.
    Connect the external to the other computer.
    Open iTunes.
    Set your import settings to AAC.
    Hold Option, go to File > Create new version - Convert to AAC.
    Select the Music folder you copied to the external.
    After you are finished, you can delete the /Music/ folder on the external.
    Note that this will take some time as it is converting every song file you add.
    FYI: You can convert the files directly as they are sync'd to the iPod.
    Select the iPod in iTunes.
    Click the Summary tab.
    Tick Convert higher bit rate songs to {128, 192, 256} kbps AAC.

  • How do I use the time capsule to share itunes music between multiple apple devices? Also, is it possible to control the music on one device using another, and how do you set this up?

    How do I use the time capsule to share itunes music between multiple apple devices? Also, is it possible to control the music on one device using another, and how do you set this up?

    unless i'm missing something, i think you got mixed up, this is easy google for walk throughs
    i'm assuming this is the new 3tb tc AC or 'tower' shape, if so, its wifi will run circles around your at&t device
    unplug the at&t box for a minute and plug it back in
    factory reset your tc - unplug it, hold down reset and keep holding while you plug it back in - only release reset when amber light flashes in 10-20s
    connect the tc to your at&t box via eth in the wan port, wait 1 minute, open airport utility look in 'other wifi devices' to setup the tc
    create a new wifi network (give it a different name than your at&t one) and put the tc in bridge mode (it may do this automatically for you, but you should double check) under the 'network' tab
    login to your at&t router and disable wifi on it
    add new clients to the new wifi network, and point your Macs to the time machine for backups

  • Moving time-dependant data from one table to another (archiving)

    Hello all
    I would like to know if there's an easier solution or a "best practice" to move data from one table to another. The context of this issue can be found within "archiving".
    More concretely: we have an application that uses several tables to log information to.
    These tables are growing like crazy, and we would like to keep only "relevant" data in those tables, so I was thinking about moving data from these tables that have been in there for, say 2 months, to "archiving" tables.
    I figured there must be some kind of "best practice" to get this done.
    I have already written a procedure that loops the table that has the time indicator and inserts the records from the normal tables into the archive tables (and afterwards delete this data), but it seems to be taking ages to get it done.
    Thanks in advance!
    Message was edited by:
    timschraepen

    There is nothing to do with PL/SQL.
    You can refer below links:
    http://www.lc.leidenuniv.nl/awcourse/oracle/server.920/a96524/c12parti.htm
    http://www.stanford.edu/dept/itss/docs/oracle/10g/server.101/b10739/partiti.htm#i1006727

  • Restored our SSRS 2008 R2 from one server to another; Dates are in UK format and not US

    We have restored our SSRS 2008 R2 from one server to another. The original server was in US locale/culture. The new server was in UK locale/culture, when the restore happened. However it should have been in US locale/culture. We have made this change and
    new reports work OK.
    However existing reports (i.e. saved by a user) are still trying to use the US dates in a UK format and as a result throwing a date cant be below 1753 error.
    Has anyone seen this issue before or have any idea what we need to do to fix it?
    Thanks
    Kimberlad

     Hi Kimberlad
    Have you checked any changes in the Collation? 
    Please verify Reporting Server Databases and Server Collation is there any mismatch with your Source Server.
    and also please post complete Error message..
    Nag Pal MCTS/MCITP (SQL Server 2005/2008) :: Please Mark Answer/vote if it is helpful ::

  • HT201250 how can i pass information from one mac to another mac by using the time capsule

    how can i pass information from one mac to another mac by using the time capsule

    If you want to transfer files, settings, etc., you must open Migration Assistant (Applications > Utilities) in the Mac that you want to transfer the files and follow the instructions

  • How do I go directly from one frame to another particular frame which is far away in the time line? (e.g the two frames are separated by 100 frames)

    How do I go directly from one frame to another particular frame which is far away in the time line? (e.g the two frames are separated by 100 frames). I mean, is it possible to take the playhead from one frame to another frame directly which is 100 frames away in the time line? Thanks for any reply.

    In the Timeline, go to the first frame and press M to put a marker on it. Go to the other frame you want to jump to and put a marker on that one too.
    Now press Ctrl+Semicolon to go to the previous marker - or Ctrl+Comma to go to the next marker.
    Andy

Maybe you are looking for

  • Is there a way to change the output type for Email Remittance Program?

    Hello, We are trying to implement Separate Remittance Program.The seeded output type is PDF( I have checked the output type for send separate remittance concurrent program) however the email which we receive looks like a regular email I mean with a n

  • Switching to simple to smartphone - what happens to upgrade?

    I have a question and I couldn't find a similar case online. Hope some of you can give me some light. I currently own a simple phone from Verizon and it is already eligible for an upgrade. I have been saving this upgrade for a while to go for the nex

  • Course booking for org unit in LSO - ECC 6

    Hi All, can u pls share your inputs /solution we are in the process of implementing LSO . The requirement right now is that we want to book courses for an Org unit. The idea is to book the courses directly to Org Unit so that all the employees have a

  • Basic JSF Question

    I've a really simple JSF question which I'm hoping someone can help me with... In ASP.NET you have full access to the page tag components from inside the backing (code-behind) bean. Is this possible in JSF? If so, how? On a related note, it does seem

  • Caching in Web Logic

    Hi, I wanted to find out if the BEA WebLogic Server does any HTTP-level caching at all with respect to both entire documents (eg: gif images, static HTML files) as well as partial documents (eg: JSP fragments). Any inputs would be much appreciated, T