Excel Data conversion

Ask a Question related to PERL Modules, Design and Development.

  1. #1

    Default Excel Data conversion

    Hello,

    I have to convert the (afaik) Excel (internal) date format into a
    different format.
    I am wondering if there is a package around to do so. The excel Format
    is something like 3NNNN and represents the number of days since 1.1.1900.

    Cheers, Hans
    Hans Kohls Guest

  2. Similar Questions and Discussions

    1. Arraycollection conversion to chart data
      I'm trying to get ArrayCollection mapped to an array using the Blazeds turnkey sample code. In the sqladmin example, they are creating a List...
    2. HELP!!! Excel links/styles are not being maintained in ID CS Pagemaker Conversion!
      I do 100+ page price lists. Pricing is extracted from the company's internal database into several hundred Excel spreadsheets via VLOOKUP. I then...
    3. MS Excel Chart Conversion problem
      I have used "Paste Special" then Paste as a Picture (Metafile) to insert Excel charts into a number of MS Word documents. PDF files are being created...
    4. excel conversion
      I once used a tidy little class by alain simous to read cells off of .xls sheets, but apparently the com extension is not supported in recent...
    5. Data conversion from old system
      I have been given a very old database written in Delta for DOS to re-create as a new Filemaker Pro system. The Delta system does not appear to...
  3. #2

    Default Re: Excel Data conversion

    Hans Kohls wrote:
    > I have to convert the (afaik) Excel (internal) date format into a
    > different format.
    > I am wondering if there is a package around to do so. The excel Format
    > is something like 3NNNN and represents the number of days since 1.1.1900.
    DateTime::Format::Excel is a module intended to do this conversion.

    [url]http://search.cpan.org/dist/DateTime-Format-Excel/lib/DateTime/Format/Excel.pm[/url]

    Regards,
    Bill K.
    Bill Karwin Guest

  4. #3

    Default Re: Excel Data conversion

    Hans Kohls wrote:
    > Hello,
    >
    > I have to convert the (afaik) Excel (internal) date format into a
    > different format.
    > I am wondering if there is a package around to do so. The excel Format
    > is something like 3NNNN and represents the number of days since 1.1.1900.
    linux% perl -e 'use Date::Calc qw(Add_Delta_Days); \
    printf "%4d/%02d/%02d\n",Add_Delta_Days(1900,1,1,31245)'
    1985/07/19

    -Joe
    Joe Smith Guest

  5. #4

    Default Re: Excel Data conversion

    On Tue, 27 Jul 2004 18:03:28 GMT, Joe Smith wrote:
    >> Hans Kohls wrote:
    >>
    >> I have to convert the (afaik) Excel (internal) date format into a
    >> different format.
    >> I am wondering if there is a package around to do so. The excel Format
    >> is something like 3NNNN and represents the number of days since 1.1.1900.
    > linux% perl -e 'use Date::Calc qw(Add_Delta_Days); \
    > printf "%4d/%02d/%02d\n",Add_Delta_Days(1900,1,1,31245)'
    > 1985/07/19
    That is out by 2 days because:

    1. the epoch is actually 0 January 1900!
    2. 1900 is treated as a leapyear by Excel!!

    Mind-boggling stuff is it not.

    The following gives the right dates from 1 March 1900 onwards:

    ... Add_Delta_Days(1899, 12, 30, $excel_date);

    John.
    --
    perl -MCPAN -e 'install jmcnamara & _ x ord $ ;' | tail -1
    John McNamara Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139