change the date string into timestamp

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • praba kar

    #1

    change the date string into timestamp

    Dear All,

    In Php strtotime() will change a date
    string into timestamp. I want to know which
    python function will change a date string
    into timestamp.


    Date string format is below

    Fri, 8 Apr 2005 09:22:14 +0900

    regards
    Prabahar

    _______________ _______________ _______________ _______________ ____________
    Yahoo! India Matrimony: Find your life partner online
    Go to: http://yahoo.shaadi.com/india-matrimony
  • Michael Hoffman

    #2
    Re: change the date string into timestamp

    praba kar wrote:
    [color=blue]
    > In Php strtotime() will change a date
    > string into timestamp. I want to know which
    > python function will change a date string
    > into timestamp.[/color]

    What do you mean by "a timestamp?"
    --
    Michael Hoffman

    Comment

    • Fabio Pliger

      #3
      Re: change the date string into timestamp

      You can use some date/time modules as:
      time built in module
      datetime
      wxDatetime from wx

      just take a look in the documentation.. . they are very simple to use.

      F.P.

      "praba kar" <prabapython@ya hoo.co.in> ha scritto nel messaggio
      news:mailman.16 10.1113039505.1 799.python-list@python.org ...[color=blue]
      > Dear All,
      >
      > In Php strtotime() will change a date
      > string into timestamp. I want to know which
      > python function will change a date string
      > into timestamp.
      >
      >
      > Date string format is below
      >
      > Fri, 8 Apr 2005 09:22:14 +0900
      >
      > regards
      > Prabahar
      >
      > _______________ _______________ _______________ _______________ ____________
      > Yahoo! India Matrimony: Find your life partner online
      > Go to: http://yahoo.shaadi.com/india-matrimony[/color]


      Comment

      Working...