pike.git / src / builtin.cmod

version» Context lines:

pike.git/src/builtin.cmod:129:      #define MODIFY(X) do{ THIS->modified = 1;THIS->t.X; }while(0)   #define FIX_THIS() do { \    if(THIS->modified){ \    THIS->unix_time = mktime_zone( &THIS->t ); \    THIS->modified = 0; \    } \    } while(0)      #ifdef HAVE_STRPTIME -  /* -  *! @decl int(0..1) strptime( string(1..255) format, string(1..255) data ) +  /*! @decl int(0..1) strptime( string(1..255) format, string(1..255) data )    *!    *! Parse the given @[data] using the format in @[format] as a date.    *!    *! %% The % character.    *!    *! %a or %A    *! The weekday name according to the C locale, in abbreviated    *! form or the full name.    *!    *! %b or %B or %h
pike.git/src/builtin.cmod:287:    *! %w The day of the week as a decimal, range 0 to 6, Sunday being 0. See also %u.    */    PIKEFUN string strftime(string(1..255) format)    {    char *buffer = xalloc( 8192 );    buffer[0] = 0;    strftime_zone( buffer, 8192, format->str, &THIS->t );    push_text( buffer );    }    -  /* -  *! @decl int(0..60) sec; +  /*! @decl int(0..60) sec;    *! @decl int(0..59) min;    *! @decl int(0..59) hour;    *! @decl int(1..31) mday;    *! @decl int(0..11) mon;    *! @decl int year;    *!    *! The various fields in the structure. Note that setting these    *! might cause other fields to be recalculated, as an example,    *! adding 1000 to the hour field would advance the 'mday', 'mon'    *! and possibly 'year' fields.