Date [deprecation] -- what other method?

Hi
I was using somethine like this in my code:
     Date fecha2 = new Date(2009,4,24,20,30);And compiler, like java api 6, says that that method is deprecated.
I want to get an object of Date type, so i dont know what other method i can use to have the year, the month, the day, the hour and minutes in a Date type object.
I have been reading a bit about others, but i dont know how to use them to get a Date object.
Thanks and sorry for my language ;)

CeciNEstPasUnProgrammeur wrote:
I have to admit that "getTime" is a rather stupid method name for returning a Date. Anyway, when reading the Javadocs, also pay attention to the section with inherited methods.Yeah... a bit stupid :P that was confused for me...
Ok, i told you what i have done, i think its good:
First of all:
     private Calendar calendario=Calendar.getInstance();        Then insted of Date = new Date (int, int , int, int, int):
     calendario.set(2008,4,24,20,30);
         Date fecha = calendario.getTime();Its a bit longer, but well...
Thaks for your help. :)

Similar Messages

  • What other methods are there to re-install Win 8.1 pro without losing files & programs, if I am unable to update my Recovery image?

    So I am thinking my Windows 8.1 Pro needs a refresh, but I have not ran "recimg /createimage C:\*" for a while and because of the problems I have. I cannot create a new one, it just wont work and I've had a post on here about that issue for a while
    now and nothing has worked.  So I know I need to re-install windows but I really want to be able to keep my Programs & files.
    So my question is, are there any other methods to re-install Windows 8.1 pro without losing my programs?
    That's the reason I have not just done a reinstall, because of the time and effort needed to do this in a timely manner.  Also I need to keep my programs APPDATA intact so that my applications still work as they do now, some programs have got months
    of history and data.  Also I am not certain I still have the installers for some of my applications, I know I can get them but again its the time it would take.
    This is why I run a separate backup of my APPDATA DIR, am I right in thinking that If I did have to reinstall that I could just restore the old APPDATA data to the new Install and my programs would automatically have all there normal settings?
    So what are my options?
    Thanks peeps.
    JK MCP

    Isn't that only used when a PC will not boot?
    What options does booting with this give me?
    Thanks
    JK MCP
    Hi,
    USB recovery disk was used to recover your system when it encounter problem. You can try to use it to fix your problem instead reinstall system. However, there is no method to keep your program whenreinstall system.
    Roger Lu
    TechNet Community Support

  • Using sprite for itemRenderer what other method than set data needs override

    I get the following error: 1020 Method Marked override must override another method. Complier marks the error at the start of my set data method:
    code is here:
    http://pastie.org/497786
    any input would be welcome.
    Thanks
    Jed

    I think Natasha said that you don't need the override on your set data() method.  You shouldn't need to implement IFactory either.  I think your code should look like this:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:UIComponent
         xmlns:mx="http://www.adobe.com/2006/mxml"
         width="160"
         height="120"
         implements="mx.controls.listClasses.IListItemRenderer"
         >
         <mx:Style source="QtVideo.css"/>
         <mx:Script>
              <![CDATA[
                   private var repImageSource:String = "";
                   private var movieSource:String = "";
                   private var _data:Object;
                   public function get data():Object
                        return _data;
    setting data
                   public function set data(value:Object):void
                        _data = value;
                        repImageSource = value.representativeImage as String;
                        movieSource = value.source as String;
              ]]>
         </mx:Script>
         <mx:Image
              id="repImage"
              width="160"
              height="120"
              source = ""
              horizontalAlign="center"
              x="0"
              y="0"
              >     
         </mx:Image>
         <mx:Button styleName="playStopStyle"
              id="playBtn"
              x="{repImage.width/2 - 22.5}"
              y="{repImage.height/2 -22.5}"
              />
    </mx:UIComponent >
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui

  • Why exp fail and what other method I should use

    Hi Everybody,
    I plan to "copy" data from a table partition of a transactional database to a remote historical database table,both of the source and destination tables are partitioned in the same way
    In the source 9i database, I do the exp using below command
    exp reporter/password file=rs_p20101128.dmp tables=(reporter.reporter_status:p_20101128)
    About to export specified tables via Conventional Path ...
    +. . exporting table REPORTER_STATUS+
    +. . exporting partition P_20101128 212932 rows exported+
    EXP-00091: Exporting questionable statistics.
    EXP-00091: Exporting questionable statistics.
    EXP-00091: Exporting questionable statistics.
    EXP-00091: Exporting questionable statistics.
    EXP-00091: Exporting questionable statistics.
    EXP-00091: Exporting questionable statistics.
    Export terminated successfully with warnings.
    In the remote 10g databse, I do the imp using below command but fail
    imp reporter/password01   FROMUSER=reporter file=/tmp/rs_p20101128.dmp tables=(REPORTER_STATUS:P_20101128)
    Import: Release 10.2.0.2.0 - Production on Mon Nov 29 17:52:31 2010
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Production
    With the Partitioning, OLAP and Data Mining options
    Export file created by EXPORT:V09.02.00 via conventional path
    import done in US7ASCII character set and AL16UTF16 NCHAR character set
    import server uses AL32UTF8 character set (possible charset conversion)
    +. importing REPORTER's objects into REPORTER+
    +. importing REPORTER's objects into REPORTER+
    IMP-00015: following statement failed because the object already exists:
    +"CREATE TABLE "REPORTER_STATUS" ("IDENTIFIER" VARCHAR2(255), "SERIAL" NUMBER"+
    +"(16, 0), "NODE" VARCHAR2(64), "NODEALIAS" VARCHAR2(255), "MANAGER" VARCHAR2"+
    +"(64), "AGENT" VARCHAR2(64), "ALERTGROUP" VARCHAR2(64), "ALERTKEY" VARCHAR2("+
    +"255), "SEVERITY" NUMBER(16, 0), "SUMMARY" VARCHAR2(255), "FIRSTOCCURRENCE" "+
    +......+
    +"0 INITRANS 1 MAXTRANS 255 STORAGE(INITIAL 10485760 FREELISTS 1 FREELIST GRO"+
    +"UPS 1) TABLESPACE "REPORTER" LOGGING NOCOMPRESS )"+
    IMP-00055: Warning: partition or subpartition "REPORTER_STATUS":"P_20101128" not found in export file
    Import terminated successfully with warnings.
    Any suggestion to make the things work?
    Clay

    thanks for all your suggestions but the problem persists, pls have a look at below command and output captures.
    In source 9i database, I do export using below command and got below output:
    +reporter@xxam[tmp] 554 %scp rs_p20101128.dmp [email protected]:/tmp/. Password:+
    +HGCP@hgcam02[tmp] 555 %exp reporter/passwdx01 file=rs_p20101127.dmp tables=(reporter.reporter_status:P_20101127) statistics=none INDEXES=N TRIGGERS=N CONSTRAINTS=N consistent=y+
    Export: Release 9.2.0.6.0 - Production on Mon Nov 29 18:18:36 2010
    Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
    Connected to: Oracle9i Enterprise Edition Release 9.2.0.6.0 - 64bit Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.6.0 - Production
    Export done in US7ASCII character set and AL16UTF16 NCHAR character set
    server uses WE8ISO8859P1 character set (possible charset conversion)
    Note: indexes on tables will not be exported
    Note: constraints on tables will not be exported
    About to export specified tables via Conventional Path ...
    +. . exporting table REPORTER_STATUS+
    +. . exporting partition P_20101127 195127 rows exported+
    Export terminated successfully without warnings.
    =================================
    In destination 10g database, I do import using below command and got below output:
    bash-3.00$ imp reporter/passwd0001   FROMUSER=REPORTER TOUSER=REPORTER file=/tmp/rs_p20101127.dmp tables=(REPORTER_STATUS:P_20101127)
    Import: Release 10.2.0.2.0 - Production on Mon Nov 29 18:23:54 2010
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Production
    With the Partitioning, OLAP and Data Mining options
    Export file created by EXPORT:V09.02.00 via conventional path
    import done in US7ASCII character set and AL16UTF16 NCHAR character set
    import server uses AL32UTF8 character set (possible charset conversion)
    +. importing REPORTER's objects into REPORTER+
    IMP-00015: following statement failed because the object already exists:
    +"CREATE TABLE "REPORTER_STATUS" ("IDENTIFIER" VARCHAR2(255), "SERIAL" NUMBER"+
    +"(16, 0), "NODE" VARCHAR2(64), "NODEALIAS" VARCHAR2(255), "MANAGER" VARCHAR2"+
    +"(64), "AGENT" VARCHAR2(64), "ALERTGROUP" VARCHAR2(64), "ALERTKEY" VARCHAR2("+
    +"255), "SEVERITY" NUMBER(16, 0), "SUMMARY" VARCHAR2(255), "FIRSTOCCURRENCE" "+
    +"DATE NOT NULL ENABLE, "LASTOCCURRENCE" DATE, "LASTMODIFIED" DATE, "INTERNAL"+
    +"LAST" DATE, "POLL" NUMBER(16, 0), "TYPE" NUMBER(16, 0), "TALLY" NUMBER(16, "+
    +"0), "CLASS" NUMBER(16, 0), "GRADE" NUMBER(16, 0), "LOCATION" VARCHAR2(64), "+
    +""OWNERUID" NUMBER(16, 0), "OWNERGID" NUMBER(16, 0), "ACKNOWLEDGED" NUMBER(1"+
    +.................+
    +"0 INITRANS 1 MAXTRANS 255 STORAGE(INITIAL 10485760 FREELISTS 1 FREELIST GRO"+
    +"UPS 1) TABLESPACE "REPORTER" LOGGING NOCOMPRESS )"+
    Import terminated successfully with warnings.

  • When opening develop module get message "Develop Module is deactivated. Please renew your membership to reactivate the Develop Module." I am a Creative Cloud account holder and payments are up to date. What other action can I take?

    Any others suffered the samr problem or know what action to take?

    Hello,
    here some links as an approach to solve your problem:
    http://helpx.adobe.com/x-productkb/policy-pricing/activation-deactivation-products.html
    even if about Lightroom Help/Doesn't launch after 5.5 update | "Develop module is disabled" error these the instructions could althoug be helpful
    http://helpx.adobe.com/lightroom/kb/unable-launch-lightroom-55.html
    hans-Günter

  • I dont know what to do!!! I pulled out my headphones and then saw that my sound was not working correctly. I was horrified to find a piece of the headphone never came out. I have heard how much it costs to repair and the other methods are not working.

    Please help, i am so scared that i will never get my laptop back the way it was.

    "the other methods aren't working"
    Well, what other methods have you tried that didn't work?  Frankly, your post reads as a hoax, but I have some extra time on my hands, and an idea.  Make an appointment with the Apple Genius at your local Apple store.  You could also bring your MBP to an AASP.  Regardless, either one should be able to remove the bottom cover, and use a plastic thingy (dang, what is that tool called?) to push out the offending bit.

  • What replication methods are available in Oracle 10g Standard Edition?

    Hi All,
    Our customer wants to have two identical servers at two different sites (Virginia and Utah). Server in Virginia will be the primary and the other one will be Standby. Application will run on the primary database and they would like to be able to use the Utah server (standby) in the event of a failure. The switch over can be manual or automated and does not have to be instantaneous.
    I know these things can be in Enterprise Edition, but the cost is an issue here, so I was wondering what other methods are available to achieve this goal with Standard Edition database running on Windows Server 2008?
    Thank you,
    Sinan

    Spajdy,
    According to the Data Guard documentation:
    Getting Started with Data Guard
    "Oracle Data Guard is available only as a feature of Oracle Database Enterprise Edition. It is not available with Oracle Database Standard Edition."
    Unfortunately, the cost is a concern. I would love to be able to use just the Enterprise Edition and Golden Gate or Data Guard, but it is not possible, so my manager says I have to do what I have to do with the Standard Edition.
    Thanks,
    Sinan

  • ActiveX in BradySoft (CodeSoft) - What Class/Method/Object's would I use to send variable form data to BradySoft?

    What Class/Method/Object's would I use to send variable form data to BradySoft? I have a basic label setup in BradySoft and I want to send it variable form data (a serial number) from Labview ActiveX. I have attached Brady's ActiveX programmers guide but can't figure out what to use for this. P.S. I would call Brady or TekLynx tech support about this but they have a strict policy whereas BradySoft supports ActiveX but their tech support doesn't provide programming help with it. I figured I'd try the NI Forums.  

    Aaronb, I presume by publishing an ActiveX programmers manual the BradySoft software installs Active X objects. You may choose to interact with these objects within LabVIEW using Active X controls. The following link will provide a starting point for LabVIEW help topics on Active X communication: Select ActiveX Object Dialog Box
    http://zone.ni.com/reference/en-XX/help/371361F-01/lvdialog/insert_active_x_object/
    Building a Simple Web Browser Using ActiveX (Example of ActiveX arcitecture)
    http://zone.ni.com/devzone/cda/epd/p/id/81 Hope this helps provide a bit of guidance. Cheers!  

  • Can't talk to other apple products outside of wifi or when I don't have data. What's wrong and how can I fix it ?

    So I just bought a new iPhone 4S and I have to share my data with four other people so to avoid using it up I use wifi whenever possible. I use iMessage to talk to iPhones but when I'm not around wifi or when I don't have any more data, I don't receive any of their regular SMS messages but I can send them. I checked my friend's iPhone and he receives my message as an SMS but when he replied it was still in iMessage. Is it not detecting that my iMessage is off ?What's wrong and
    how can I fix it ?

    I think I fixed the apps, though.
    *Turn off your wifi and only turn it on when you want to use it
    *Lower your brightness
    *Turn off "Push" on notifications and mail and turn on "Manual"
    *Return to your home screen and then double click twice and tap and hold one of the apps you've previously opened, when they jiggle tap the red on each app until fully erased.
    *Don't use your ipod while it is charging, allow at least a 10 minute charge (fully charged) before using it again.
    See if this helps(: ... I still have no answer bout the camera issue. I might be going to apple soon so we will see then.

  • Hello sir i purchase second hand iphone4s now my iphone ask for activation with id and password i contact with previous owner and use that id and password but that also not work what i do ola help me i try all other method restore ' upgrade

    hello sir i purchase second hand iphone4s now my iphone ask for activation with id and password i contact with previous owner and use that id and password but that also not work what i do ola help me i try all other method restore ' upgrade etc but none work plz say what i do if u find some solution tham msg me on
    iPhone 4S

    oenkz33 wrote:
    this does not help at all for the second owner, after making the first owner id with careless, sorry for my english ...
    Careless? Possible, but unlikely. Most likely the phone was stolen from the first owner. It would be a VERY careless iPhone owner who did not erase their personal information from a phone before selling it, and to do that it is necessary to disable Activation Lock. In most places in the world knowingly using stolen property is a crime, so the fact that the phone doesn't work may be the least of one's risks.

  • What is the best approach to migrate SharePoint farm from one data center to other datacenter

    We have two web front server and one application server and two instances for database server and we have to migrate complete farm from one data center to other data center with minimal downtime and end user impact.
    Please provide your best input on this.
    Thanks in advance.

    Create a new farm in the secondary Data Center at the same patch level with the desired configuration. Replicate the databases using the method of choice (Mirroring, AlwaysOn, etc.). Create a downtime window where you can then attach the databases to the
    new farm's Web Application(s)/Service Application(s).
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • When I sign in to download an Apple update it says unable to connect to store. check my time and date? What does time and date mean other than what my clock shows?

    When I get a notice to update an app from Apple I am told that the connection cannot be made. Update your time and date. What does this mean other than my ipod clock?

    What you are experiencing is 100% related to Malware.
    Sometimes a problem with Firefox may be a result of malware installed on your computer, that you may not be aware of.
    You can try these free programs to scan for malware, which work with your existing antivirus software:
    * [http://www.microsoft.com/security/scanner/default.aspx Microsoft Safety Scanner]
    * [http://www.malwarebytes.org/products/malwarebytes_free/ MalwareBytes' Anti-Malware]
    * [http://support.kaspersky.com/faq/?qid=208283363 TDSSKiller - AntiRootkit Utility]
    * [http://www.surfright.nl/en/hitmanpro/ Hitman Pro]
    * [http://www.eset.com/us/online-scanner/ ESET Online Scanner]
    [http://windows.microsoft.com/MSE Microsoft Security Essentials] is a good permanent antivirus for Windows 7/Vista/XP if you don't already have one.
    Further information can be found in the [[Troubleshoot Firefox issues caused by malware]] article.
    Did this fix your problems? Please report back to us!

  • If I use Informatica Big Data Edition do I still need to use Hadoop or MapR or any other similar systems to process data? What all activities will be specific to Informatica BD or Hadoop?

    If I use Informatica Big Data Edition do I still need to use Hadoop or MapR or any other similar systems to process data? What all activities will be specific to Informatica BD and Hadoop?1. My query is to process both structured and unstructured data in real time, so is Informatica Big Data Edition suffecient of do I have to use Hadoop or MapR or Cloudera etc to process data. If so then what all activities will be performed be Informatica and what all activities will require Hadoop.2. Also for scheduling do I need to go for ActiveBatch or I can perform it be native Informatica Scheduler itself?

    If I use Informatica Big Data Edition do I still need to use Hadoop or MapR or any other similar systems to process data? What all activities will be specific to Informatica BD and Hadoop?1. My query is to process both structured and unstructured data in real time, so is Informatica Big Data Edition suffecient of do I have to use Hadoop or MapR or Cloudera etc to process data. If so then what all activities will be performed be Informatica and what all activities will require Hadoop.2. Also for scheduling do I need to go for ActiveBatch or I can perform it be native Informatica Scheduler itself?

  • My mac air says hard drive full and 90% is full of 'other' which I cant work out what 'other' is as i Have transferred most to my external hard drive

    My mac air says hard drive full and 90% is full of 'other' which I cant work out what 'other' is as i Have transferred most to my external hard drive.
    Do you know how I can tell how large each file is taking up and what my 'other' category could be?
    thanks

    Initial easy steps to gain disk space:
    - Delete all files in the Downloads folder.
      Empty the Trash.
    - Start iPhoto.
      Empty its trash.
      Restart.
    Backup:
    Run a Time Machine (or other) backup since you are about to delete and move files and you may need to recover from any inadvertent mistakes or decisions.  You will need one external hard drive for your Time Machine (or other) backup and a second if you plan to offload some files.  (See suggestions for where to purchase hard drives at the end of this message.)
    For more about backups:
    Time Machine Basics: http://support.apple.com/kb/ht1427
    Most commonly used backup methods:
    https://discussions.apple.com/docs/DOC-3045
    Methodology to protect your data.  Backups vs. Archives.  Long-term data protection:
    https://discussions.apple.com/docs/DOC-6031
    Deleting files:
    Then use the free application OmniDiskSweeper http://www.omnigroup.com/more to explore your volume in descending order by size so you can attack the problem from the top down, deleting the largest unwanted files first.  Delete with caution and do not delete any system files.  Remember to empty the trash after trashing the files.
    Additional reference on freeing disk space:
    http://pondini.org/OSX/DiskSpace.html
    Offloading files:
    Consider moving some of the no-often-used large files or directories to an external disk.  Use ODS again to find them.  This will be at least your second hard drive.  Your first one(s) is/are for your Time Machine (or other) backup(s).  Do not offload files onto a Time Machine disk.
    Format the second drive as Mac OS Extended (journaled).  Using OWS to find large files/folders and copy them from the system drive to the external hard drive and delete them from your internal drive.
    Then  > System Preferences > Time Machine > Options… > Remove the offload HD name from the exclusions list.
    Now both your system disk and your external offload disk will be backed up onto your Time Machine disk.
    From: http://www.thexlab.com/faqs/freeingspace.html
    To move your iTunes Music folder to another disk or partition:
    To change the location of your iTunes Music folder, carefully follow the instructions in the AppleCare® Knowledge Base document "iTunes for Mac: Moving your iTunes Music folder."Additional information can be found in iTunes Help.
    http://webcache.googleusercontent.com/search?q=cache:http://www.thexlab.com/105/ 00000849.html
    Laptop users may want to consider having two iTunes libraries: a small library of current favorites on their computer, while their complete library resides on an external hard drive. Utilities like iTunes Library Manager enable you to easily have multiple iTunes libraries you can use with your account.  https://www.macupdate.com/app/mac/7689/itunes-library-manager
    To move your iPhoto Library folder to another disk or partition:
    To move the iPhoto Library folder to a new location, employ the instructions in the AppleCare Knowledge Base document from http://support.apple.com/kb/PH2506 corresponding to the version of iPhoto you are using. Additional information can be found in iPhoto Help.
    Laptop users may want to consider having two iPhoto libraries: a small library of current, favorite photographs on their computer, while their complete library, or archives of older photos are saved on an external hard drive. Utilities such as iPhoto Buddy and iPhoto Library Manager enable you to have multiple iPhoto libraries that you can use with your account.
    https://www.macupdate.com/app/mac/12175/iphoto-buddy
    https://www.macupdate.com/app/mac/7158/iphoto-library-manager
    Hardware — Bigger disk/SSD:
    OWC sells 120, 240 and 480 GB SSD upgrades for MacBook Airs.  A 240 GB upgrade costs $265.   http://eshop.macsales.com/shop/SSD/OWC/ .  If your Mac is under warranty or AppleCare replacing the SSD will void the warranty.

  • How to get the previous state of my data after issuing coomit method

    How to get the previous state of some date after issuing commit method in entity bean (It should not use any offline storage )

    >
    Is there any way to get the state apart from using
    offline storage ?As I said the caller keeps a copy in memory.
    Naturally if it is no longer in memory then that is a problem.
    >
    and also what do you mean by auditlog?
    You keep track of every change to the database by keeping the old data. There are three ways:
    1. Each table has a version number/delete flag for each record. A record is never updated nor deleted. Instead a new record is created with a new version number and with the new data.
    2. Each table has a duplicate table which has all of the same columns. When the first table is modified the old data is moved to the duplicate table.
    3. A single table is used which has columns for 'table', 'field', 'data' and 'activity' (update, delete). When a change is made in any table then this table is updated. This is generally of limited useability due to the difficulty in recovering the data.
    All of the above can have a user id, timestamp, and/or additional information which is relevant to the data being changed.
    Note that ALL of this is persisted storage.
    I am not sure what this really has to do with "offline storage" unless you are using that term to refer to backed up data which is not readily available.

Maybe you are looking for

  • Publish dates into iCal from Numbers

    I am trying to publish dates from a chart in Numbers to iCal or Outlook calendar. Is this something that can be done?

  • Looking for a mail app... any recommendations?

    I use my mac for business, and send many emails out to vendors and suppliers and manufacturers on a variety of customer issues. Often, it takes me several emails before I get a reply on a given issue. Sometimes I forget to follow up on a particular e

  • Different Region in Free goods

    Dear All, While maintaining free goods master in VBN1, in field Region I am getting a list of region releted to Australia, while my selected country in India. in search (F4) if I put IN, i get the list, but when I select one of them, it gives a descr

  • Help required in building up the Java Bean for an XML data

    Hi , I want to build a Java bean which will actually represent an xml data . The class will be named as User and it will typically represent the data in the follwing xml: <user> <cwsId>barbete</cwsId> <firstName>William</firstName> <lastName>Barber</

  • Opem Item Management needs to be activated for GL Account

    Hi Friends, While creating GL A/c (Loss Claims Recoverble) not select Open item management. I want to update the GL A/c with Open item management selection button in GL master. While running program : RFSEPA02 giving Message as "Do not use the report