Ir para conteúdo
Fórum Script Brasil

pythonmagazine.com.br

Membros
  • Total de itens

    9
  • Registro em

  • Última visita

Posts postados por pythonmagazine.com.br

  1. Bem completo ai pra você

    NAME
        time - This module provides various functions to manipulate time values.
    
    FILE
        (built-in)
    
    DESCRIPTION
        There are two standard representations of time.  One is the number
        of seconds since the Epoch, in UTC (a.k.a. GMT).  It may be an integer
        or a floating point number (to represent fractions of seconds).
        The Epoch is system-defined; on Unix, it is generally January 1st, 1970.
        The actual value can be retrieved by calling gmtime(0).
        
        The other representation is a tuple of 9 integers giving local time.
        The tuple items are:
          year (four digits, e.g. 1998)
          month (1-12)
          day (1-31)
          hours (0-23)
          minutes (0-59)
          seconds (0-59)
          weekday (0-6, Monday is 0)
          Julian day (day in the year, 1-366)
          DST (Daylight Savings Time) flag (-1, 0 or 1)
        If the DST flag is 0, the time is given in the regular time zone;
        if it is 1, the time is given in the DST time zone;
        if it is -1, mktime() should guess based on the date and time.
        
        Variables:
        
        timezone -- difference in seconds between UTC and local standard time
        altzone -- difference in  seconds between UTC and local DST time
        daylight -- whether local time should reflect DST
        tzname -- tuple of (standard time zone name, DST time zone name)
        
        Functions:
        
        time() -- return current time in seconds since the Epoch as a float
        clock() -- return CPU time since process start as a float
        sleep() -- delay for a number of seconds given as a float
        gmtime() -- convert seconds since Epoch to UTC tuple
        localtime() -- convert seconds since Epoch to local time tuple
        asctime() -- convert time tuple to string
        ctime() -- convert time in seconds to string
        mktime() -- convert local time tuple to seconds since Epoch
        strftime() -- convert time tuple to string according to format specification
        strptime() -- parse string to time tuple according to format specification
        tzset() -- change the local timezone
    
    CLASSES
        __builtin__.object
            struct_time
        
        class struct_time(__builtin__.object)
         |  Methods defined here:
         |  
         |  __add__(...)
         |      x.__add__(y) <==> x+y
         |  
         |  __contains__(...)
         |      x.__contains__(y) <==> y in x
         |  
         |  __eq__(...)
         |      x.__eq__(y) <==> x==y
         |  
         |  __ge__(...)
         |      x.__ge__(y) <==> x>=y
         |  
         |  __getitem__(...)
         |      x.__getitem__(y) <==> x[y]
         |  
         |  __getslice__(...)
         |      x.__getslice__(i, j) <==> x[i:j]
         |      
         |      Use of negative indices is not supported.
         |  
         |  __gt__(...)
         |      x.__gt__(y) <==> x>y
         |  
         |  __hash__(...)
         |      x.__hash__() <==> hash(x)
         |  
         |  __le__(...)
         |      x.__le__(y) <==> x<=y
         |  
         |  __len__(...)
         |      x.__len__() <==> len(x)
         |  
         |  __lt__(...)
         |      x.__lt__(y) <==> x<y
         |  
         |  __mul__(...)
         |      x.__mul__(n) <==> x*n
         |  
         |  __ne__(...)
         |      x.__ne__(y) <==> x!=y
         |  
         |  __reduce__(...)
         |  
         |  __repr__(...)
         |      x.__repr__() <==> repr(x)
         |  
         |  __rmul__(...)
         |      x.__rmul__(n) <==> n*x
         |  
         |  ----------------------------------------------------------------------
         |  Data descriptors defined here:
         |  
         |  tm_hour
         |  
         |  tm_isdst
         |  
         |  tm_mday
         |  
         |  tm_min
         |  
         |  tm_mon
         |  
         |  tm_sec
         |  
         |  tm_wday
         |  
         |  tm_yday
         |  
         |  tm_year
         |  
         |  ----------------------------------------------------------------------
         |  Data and other attributes defined here:
         |  
         |  __new__ = <built-in method __new__ of type object at 0x1E1F50A0>
         |      T.__new__(S, ...) -> a new object with type S, a subtype of T
         |  
         |  n_fields = 9
         |  
         |  n_sequence_fields = 9
         |  
         |  n_unnamed_fields = 0
    
    FUNCTIONS
        asctime(...)
            asctime([tuple]) -> string
            
            Convert a time tuple to a string, e.g. 'Sat Jun 06 16:26:11 1998'.
            When the time tuple is not present, current time as returned by localtime()
            is used.
        
        clock(...)
            clock() -> floating point number
            
            Return the CPU time or real time since the start of the process or since
            the first call to clock().  This has as much precision as the system
            records.
        
        ctime(...)
            ctime(seconds) -> string
            
            Convert a time in seconds since the Epoch to a string in local time.
            This is equivalent to asctime(localtime(seconds)). When the time tuple is
            not present, current time as returned by localtime() is used.
        
        gmtime(...)
            gmtime([seconds]) -> (tm_year, tm_mon, tm_mday, tm_hour, tm_min,
                                   tm_sec, tm_wday, tm_yday, tm_isdst)
            
            Convert seconds since the Epoch to a time tuple expressing UTC (a.k.a.
            GMT).  When 'seconds' is not passed in, convert the current time instead.
        
        localtime(...)
            localtime([seconds]) -> (tm_year,tm_mon,tm_mday,tm_hour,tm_min,tm_sec,tm_wday,tm_yday,tm_isdst)
            
            Convert seconds since the Epoch to a time tuple expressing local time.
            When 'seconds' is not passed in, convert the current time instead.
        
        mktime(...)
            mktime(tuple) -> floating point number
            
            Convert a time tuple in local time to seconds since the Epoch.
        
        sleep(...)
            sleep(seconds)
            
            Delay execution for a given number of seconds.  The argument may be
            a floating point number for subsecond precision.
        
        strftime(...)
            strftime(format[, tuple]) -> string
            
            Convert a time tuple to a string according to a format specification.
            See the library reference manual for formatting codes. When the time tuple
            is not present, current time as returned by localtime() is used.
        
        strptime(...)
            strptime(string, format) -> struct_time
            
            Parse a string to a time tuple according to a format specification.
            See the library reference manual for formatting codes (same as strftime()).
        
        time(...)
            time() -> floating point number
            
            Return the current time in seconds since the Epoch.
            Fractions of a second may be present if the system clock provides them.
    
    DATA
        accept2dyear = 1
        altzone = 7200
        daylight = 0
        timezone = 10800
        tzname = ('Hora oficial do Brasil', 'Hora oficial do Brasil')

  2. Sim,

    Mas você tem que gravar o ID dele em uma session

    e quando for fazer o select, update ou delete você poe o WHERE ID = session dele

    $sql= mysql_query("SELECT * FROM tb_usuarios WHERE ID_USUARIO = '".$_SESSION[id]."'")                           or die("ERRO NA CONSULTA SQL");

  3. Link para download AQUI

    Livros da relação

    Python Programming on Win32 + code

    Beginning Game Development With Python And Pygame From Novice To Professional

    Core Python Programming 2nd Ed.

    MySQL-python-1.2.0

    Core Python

    Programming Python 2nd Ed.+ examples

    Python & TKinter Programming

    Python v1.3.13.S60 3rd Ed.

    Thinking In Python (PDF, HTML & code)

    Data Structures And Algorithms With Object-Oriented Design Patterns In Python

    Dive Into Python

    Python Programming with the Java Class Libraries - Jython

    Text processing in python

    Beginning Python - From Novice to Professional

    Beginning Python

    Computer Programming - Python - Programming Language Tutorial (2002 Van Rossum)

    Core Python Programming

    Game Programming with Python, Lua and Ruby

    GUI Programming with Python - QT Edition

    How to Think Like a Computer Scientist, Python Edition

    Making Use Of Python

    Learning Python 3rd Ed.

    Programming Python 3rd Ed.

    Python Cookbook 2nd Ed.

    Python Pocket Reference 2nd Ed.

    Python & XML

    Perl To Python Migration 2001

    Python 2.1 Bible

    Python-2.4.1

    Python Developers Handbook

    Python Essential Reference, 2nd Ed.

    Python - How to Program

    Python in a Nutshell, 2nd Edition

    Python Programming for the Absolute Beginner

    Python Programming Tutorial

    Python Scripting For Computational Science

    Python Standard Library

    Python Visual Quickstart Guide

    XML Processing with Python

    Rapid Python Web Application Development

    Python Phrasebook - Essential Code And Commands

    Unix - GUI Programming with Python

×
×
  • Criar Novo...