The Red Project
 All Classes Namespaces Files Functions Variables Pages
datetime.php File Reference

Functions

 timezone_cmp ($a, $b)
 
 select_timezone ($current= 'America/Los_Angeles')
 
 field_timezone ($name='timezone', $label='', $current= 'America/Los_Angeles', $help)
 
 datetime_convert ($from= 'UTC', $to= 'UTC', $s= 'now', $fmt="Y-m-d H:i:s")
 
 dob ($dob)
 
 datesel_format ($f)
 
 datesel ($f, $pre, $ymin, $ymax, $allow_blank, $y, $m, $d)
 
 timesel ($pre, $h, $m)
 
 relative_date ($posted_date, $format=null)
 
 age ($dob, $owner_tz= '', $viewer_tz= '')
 
 get_dim ($y, $m)
 
 get_first_dim ($y, $m)
 
 cal ($y=0, $m=0, $links=false, $class='')
 

Function Documentation

age (   $dob,
  $owner_tz = '',
  $viewer_tz = '' 
)
cal (   $y = 0,
  $m = 0,
  $links = false,
  $class = '' 
)

Referenced by events_content().

datesel (   $f,
  $pre,
  $ymin,
  $ymax,
  $allow_blank,
  $y,
  $m,
  $d 
)

Referenced by dob(), and events_content().

datesel_format (   $f)

Referenced by events_content(), and profiles_content().

datetime_convert (   $from = 'UTC',
  $to = 'UTC',
  $s = 'now',
  $fmt = "Y-m-d H:i:s" 
)
dob (   $dob)

Referenced by profiles_content().

field_timezone (   $name = 'timezone',
  $label = '',
  $current = 'America/Los_Angeles',
  $help 
)

Referenced by setup_content().

get_dim (   $y,
  $m 
)

Referenced by cal(), events_content(), and posted_dates().

get_first_dim (   $y,
  $m 
)

Referenced by cal().

select_timezone (   $current = 'America/Los_Angeles')

Referenced by field_timezone().

timesel (   $pre,
  $h,
  $m 
)

Referenced by events_content().

timezone_cmp (   $a,
  $b 
)