Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. santanudas

    converting HTML markup code to text

    No problem feherke, at least you tried to help. Many thanks for that. Cheers!!!
  2. santanudas

    converting HTML markup code to text

    Hi feherke, I already tried reversing the system call as you said; need not to say that didn't fix the problem here. Cheers!!!
  3. santanudas

    converting HTML markup code to text

    Just to mention that I already have # -*- coding: ISO-8859-15 -*- added at the beginning of the script but this isn't working. Cheers!!!
  4. santanudas

    converting HTML markup code to text

    Hi there, Thanks for the link. The "unescape" did solve the problem for "*&#xx" but creating for problem for string like: Rai%CC%88 (Raï) or Beyonc%CC%81 (Beyoncé). This is what I get: Traceback (most recent call last): File "./metadata.py", line 150, in <module> artist_dir="%s/%s/%s" %...
  5. santanudas

    converting HTML markup code to text

    Is there any help from any one please? Is too tough to do? Cheers!!!
  6. santanudas

    converting HTML markup code to text

    I see, I still get it right. In short: using urllib.unquote(), "&#38;" is not being converted to "&" - what am I missing? (finger crossed!!! hopefully this time it will come up correctly).
  7. santanudas

    converting HTML markup code to text

    Silly me, I should have realized the html-code will be converted into normal character on the browser any way. So, this is the sample line, taken for the .xml file...
  8. santanudas

    converting HTML markup code to text

    Greetings all, I'm a python newbie, so my apology for being silly (if it is) with my question. I was trying to convert converting HTML markup code to human readable text and the sample line I took form the iTumes music library, which is a .xml file. import os, sys, string import urllib...
  9. santanudas

    Difference of days in terms of Year, Month Week and Day

    Many thanks mikrom and Kevin for your time. I tried both - both are working but returning different result. I was trying many different dates and I found the difference dates - 2008/10/31 and 2008/11/4 is reported by mikrom's script is: 3 and with the same date, Kevin's script reports: 4 Isn't...
  10. santanudas

    Difference of days in terms of Year, Month Week and Day

    I was only expecting the correct result in standard "human understandable form" - the difference between 2008/10/31 and 2009/1/16 - in this case it isn't. Who says like: "You are 1 year, -9 months and -15 days old" or "It's been 1 year, -9 months and -15 days since we talked"? cheers!!!
  11. santanudas

    Difference of days in terms of Year, Month Week and Day

    Thank you guys for your time helping me out; I really appreciate it. Zhris: If I copy your code exactly as it is and run I get this error: Any idea what am I missing? rharsh: I didn't try Delta_YMD before but when I try out your code, I get rather funny result. The difference between 31st...
  12. santanudas

    Difference of days in terms of Year, Month Week and Day

    Yes, that's the actual problem, I think. But there must be some way of doing that. I'll utterly surprised if anyone else hasn't tried this before. Cheers!!!
  13. santanudas

    Difference of days in terms of Year, Month Week and Day

    Greetings all, As said in the subject line, trying to write a script to print the number of years, months weeks and days between two given dates. Does anyone know how to do that? So far I've tried Date::Calc module, which returns the difference as number of days but then I'm stuck converting...
  14. santanudas

    worldtime clock [AS2/AS3]

    Many thanks Kenneth, getTimezoneOffset() did the trick well. My local time is BST too, I got it working here and I checked with two of my friends in NYC and Seattle and they got the right time too. But one thing I'm confused about: When we say Date() takes the system time, do we refer the...
  15. santanudas

    worldtime clock [AS2/AS3]

    Okay, let me explain.......... I did exactly the same thing as you did, to test. Now as far as I understand, Date() returns the local time, based on the computer system time. Take that 5 & half hour offset example; in London, now it's BST, which is GMT+1 hr. and with India (IST) the time...
  16. santanudas

    worldtime clock [AS2/AS3]

    kennethkawamoto, adding time offset to the local time is not a very good idea, I believe. The problem will kick-off during the DST change. So, don't you think using UTC would be good? Cheers!!!
  17. santanudas

    worldtime clock [AS2/AS3]

    thanks kennethkawamoto. I actually did this: var now:Date = new Date(); var utcDate = now.toUTCString(); var newNow:Date = new Date(utcDate.valueOf() + 330*60*1000); trace (newNow); returns "Invalid Date" in the end. Can't I do the addition stuff on UTC?
  18. santanudas

    worldtime clock [AS2/AS3]

    first of all, thank you very much guys for your replies. oldnewbie, Adding 30 to the UTC minutes not gonna work; I tried that before. You will see some weird result if you make a digital clock. kennethkawamoto, toUTCString() way is the possible workaround but it’s only supported in AS3. Due...
  19. santanudas

    worldtime clock [AS2/AS3]

    Hi people, I'm very very new in this flash world (just a 2 weeks old of experiences, so far) and I found the ActionScript (especially v3) is really cool. So I started with making clock, not the the one which takes time off the system clock but a clock with different timezone(s). I didn't find...
  20. santanudas

    Executing Unix command within Perl

    It can't be possible that no one knows how to do that. Any one out here can help?? please?? Cheers!!!

Part and Inventory Search

Back
Top