Table of Contents

WebCalendar Function Documentation

Home Page:http://webcalendar.sourceforge.net/
WebCalendar Version:v1.0.0 (May, 17 2005)
Last updated:04-Mar-2005

activate_urls

activate_urls ( $text )

Description:

Look for URLs in the given text, and make them into links.

Parameters:

Returns:

The text altered to have HTML links for any web links (http or https)

Location:

functions.php, line 3275

activity_log

activity_log ( $event_id, $user, $user_cal, $type, $text )

Description:

Add something to the activity log for an event. The information will be saved to the webcal_entry_log table.

Parameters:

Returns:

The value used in the HTML form (or URL)

Location:

functions.php, line 771

background_css

background_css ( $color, $height, $percent )

Description:

Creates the CSS for using gradient.php, if the appropriate GD functions are available. A one-pixel wide image will be used for the background image. Note The gd library module needs to be available to use gradient images. If it is not available, a single background color will be used instead.

Parameters:

Returns:

The style sheet text to use

Location:

functions.php, line 4433

boss_must_approve_event

boss_must_approve_event ( $assistant, $boss )

Description:

Check the boss user preferences to see if the boss must approve events added to their calendar.

Parameters:

Returns:

true if the boss must approve new events

Location:

functions.php, line 3810

boss_must_be_notified

boss_must_be_notified ( $assistant, $boss )

Description:

Check the boss user preferences to see if the boss wants to be notified via email on changes to their calendar.

Parameters:

Returns:

true if the boss wants email notifications

Location:

functions.php, line 3794

build_event_popup

build_event_popup ( $popupid, $user, $description, $time, $site_extras )

Description:

Build the HTML for the event popup (but don't print it yet since we don't want this HTML to go inside the table for the month).

Parameters:

Returns:

The HTML for the event popup

Location:

functions.php, line 1084

calc_time_slot

calc_time_slot ( $time, $round_down, $10AM )

Description:

Calculate which row/slot this time represents. This is used in day and week views where hours of the time are separeted into different cells in a table.

Parameters:

Returns:

The time slot index

Location:

functions.php, line 2655

check_for_conflicts

check_for_conflicts ( $date, $duration, $hour, $minute, $participants, $login, $id )

Description:

Check for conflicts. Find overlaps between an array of dates and the other dates in the database. Limits on number of appointments: if enabled in System Settings ($limit_appts global variable), too many appointments can also generate a scheduling conflict. TODO Update this to handle exceptions to repeating events

Parameters:

Returns:

Return empty string for no conflicts or return the HTML of the conflicts when one or more are found.

Location:

functions.php, line 2461

clean_html

clean_html ( $value )

Description:

Replace unsafe characters with HTML encoded equivalents

Parameters:

Returns:

the cleaned text

Location:

functions.php, line 4363

clean_int

clean_int ( $data )

Description:

Remove non-digits from the specified text

Parameters:

Returns:

the converted text

Location:

functions.php, line 4392

clean_whitespace

clean_whitespace ( $data )

Description:

Remove whitespace from the specified text

Parameters:

Returns:

the converted text

Location:

functions.php, line 4404

clean_word

clean_word ( $data )

Description:

Remove non-word characters from the specified text

Parameters:

Returns:

the converted text

Location:

functions.php, line 4380

daily_matrix

daily_matrix ( $date, $participants )

Description:

Draws a daily outlook style availability grid showing events that are approved and awaiting approval.

Parameters:

Returns:

Nothing

Location:

functions.php, line 4474

date_selection_html

date_selection_html ( $prefix, $date )

Description:

Print out a date selection for use in a form.

Parameters:

Returns:

The value used in the HTML form (or URL)

Location:

functions.php, line 1152

date_to_str

date_to_str ( $indate, $format, $show_weekday, $short_months, $server_time )

Description:

Convert a date in YYYYMMDD format into “Friday, December 31, 1999”, “Friday, 12-31-1999” or whatever format the user prefers.

Parameters:

Returns:

The query result resource on queries (which can then be passed to the dbi_fetch_row function to obtain the results), or true/false on insert or delete queries.

Location:

functions.php, line 3430

dbi_affected_rows

dbi_affected_rows ( $conn, $res )

Description:

Returns the number of rows affected by the last INSERT, UPDATE or DELETE. Note Use the dbi_error function to get error information if the connection fails.

Parameters:

Returns:

The number or database rows affected.

Location:

php-dbi.php, line 358

dbi_close

dbi_close ( $conn )

Description:

Close a database connection. (Not necessary for any database that uses pooled connections such as MySQL, but a good programming practice.)

Parameters:

Returns:

true on success, false on error

Location:

php-dbi.php, line 187

dbi_connect

dbi_connect ( $host, $login, $password, $database )

Description:

Open up a database connection. Use a pooled connection if the db supports it and the db_persistent setting is enabled. Notes

Parameters:

Returns:

The connection

Location:

php-dbi.php, line 66

dbi_error

dbi_error ( $ )

Description:

Get the latest database error message.

Parameters:

Returns:

The text of the last database error. (The type of information varies depending on the which type of database is being used.)

Location:

php-dbi.php, line 428

dbi_fatal_error

dbi_fatal_error ( $msg, $doExit, $showError )

Description:

Display a fatal database error and abort execution.

Parameters:

Returns:

Nothing

Location:

php-dbi.php, line 461

dbi_fetch_row

dbi_fetch_row ( $res )

Description:

Retrieve a single row from the database and return it as an array. Note we don't use the more useful xxx_fetch_array because not all databases support this function. Note Use the dbi_error function to get error information if the connection fails.

Parameters:

Returns:

An array of database columns representing a single row in the query result or false on an error.

Location:

php-dbi.php, line 305

dbi_free_result

dbi_free_result ( $res )

Description:

Free a result set.

Parameters:

Returns:

true on success

Location:

php-dbi.php, line 395

dbi_query

dbi_query ( $sql, $fatalOnError, $showError )

Description:

Execute a SQL query. Note Use the dbi_error function to get error information if the connection fails.

Parameters:

Returns:

The query result resource on queries (which can then be passed to the dbi_fetch_row function to obtain the results), or true/false on insert or delete queries.

Location:

php-dbi.php, line 230

decode_string

decode_string ( $instr )

Description:

Extract a user's name from a session id. This prevents users from begin able to edit their cookies.txt file and set the username in plain text.

Parameters:

Returns:

The decoded string

Location:

functions.php, line 3530

die_miserable_death

die_miserable_death ( $error )

Description:

Print a fatal error message to the user along with a link to the Troubleshooting section of the WebCalendar System Administrator's Guide. Execution is aborted.

Parameters:

Returns:

Nothing

Location:

config.php, line 39

display_small_month

display_small_month ( $thismonth, $thisyear, $showyear, $show_weeknums, $minical_id, $month_link )

Description:

Prints out a minicalendar for a month

Parameters:

Returns:

Nothing

Location:

functions.php, line 1195

display_time

display_time ( $time, $ignore_offset )

Description:

Display a time in either 12 or 24 hour format. The global variable $TZ_OFFSET to adjust the time. Note that this is somewhat of a kludge for timezone support. If an event is set for 11PM server time and the user is 2 hours ahead, it will show up as 1AM, but the date will not be adjusted to the next day.

Parameters:

Returns:

The query result resource on queries (which can then be passed to the dbi_fetch_row function to obtain the results), or true/false on insert or delete queries.

Location:

functions.php, line 3292

display_unapproved_events

display_unapproved_events ( $user )

Description:

Check for any unnaproved events. If any are found, display a link to the unapproved events (where they can be approved). If the user is an admin user, also count up any public events. If the user is a nonuser admin, count up events on the nonuser calendar.

Parameters:

Returns:

Nothing

Location:

functions.php, line 3222

do_debug

do_debug ( $msg )

Description:

Log a debug message. Generally, we do not leave calls to this function in the code. It is used for debugging only.

Parameters:

Returns:

Nothing

Location:

functions.php, line 410

do_redirect

do_redirect ( $url )

Description:

Send a redirect to the specified page. The database connection is closed and execution terminates in this function. Note: MS IIS/PWS has a bug in which it does not allow us to send a cookie and a redirect in the same HTTP header. When we detect that the web server is IIS, we accomplish the redirect using meta-refresh. See the following for more info on the IIS bug:

http://www.faqts.com/knowledge_base/view.phtml/aid/9316/fid/4

Parameters:

Returns:

Nothing

Location:

functions.php, line 483

encode_string

encode_string ( $instr )

Description:

Take an input string and encode it into a slightly encoded hexval that we can use as a session cookie.

Parameters:

Returns:

the encoded text

Location:

functions.php, line 3564

etooltip

etooltip ( $str )

Description:

Translate text and remove and HTML from it. This is useful for tooltips, which barf on HTML. Note The tooltip function will return the result rather than print the value.

Parameters:

Returns:

Nothing

Location:

translate.php, line 176

etranslate

etranslate ( $str )

Description:

Translate text and print it. This is just an abbreviation for: echo translate ( $str )

Parameters:

Returns:

Nothing

Location:

translate.php, line 147

event_get_external_users

event_get_external_users ( $event_id, $use_mailto )

Description:

Get the list of external users for an event from the webcal_entry_ext_user table in an HTML format.

Parameters:

Returns:

The list of external users for an event formatte in HTML.

Location:

functions.php, line 729

getGetValue

getGetValue ( $name )

Description:

Get the value resulting from an HTTP GET method. Note: The return value will be affected by the value of magic_quotes_gpc in the php.ini file. If you need to enforce a specific input format (such as numeric input), then use the getValue function.

Parameters:

Returns:

The value used in the HTML form (or URL)

Location:

functions.php, line 190

getIntValue

getIntValue ( $name, $fatal )

Description:

Get an integer value resulting from an HTTP GET or HTTP POST method. Note: The return value will be affected by the value of magic_quotes_gpc in the php.ini file.

Parameters:

Returns:

The value used in the HTML form (or URL)

Location:

functions.php, line 257

getPostValue

getPostValue ( $name )

Description:

Get the value resulting from an HTTP POST method. Note: The return value will be affected by the value of magic_quotes_gpc in the php.ini file.

Parameters:

Returns:

the value used in the HTML form

Location:

functions.php, line 168

getValue

getValue ( $name, $format, $fatal )

Description:

Get the value resulting from either HTTP GET method or HTTP POST method.
Note: The return value will be affected by the value of magic_quotes_gpc in the php.ini file.
Note: If you need to get an integer value, yuou can use the getIntValue function.

Parameters:

Returns:

The value used in the HTML form (or URL)

Location:

functions.php, line 215

get_all_dates

get_all_dates ( $date, $rpt_type, $end, $days, $ex_dates, $freq )

Description:

Returns all the dates a specific event will fall on accounting for the repeating. Any event with no end will be assigned one.

Parameters:

Returns:

An array of dates (in UNIX time format)

Location:

functions.php, line 1856

get_entries

get_entries ( $user, $date, $get_unapproved )

Description:

Get all the events for a specific date from the array of pre-loaded events (which was loaded all at once to improve performance). The returned events will be sorted by time of day.

Parameters:

Returns:

An array of events

Location:

functions.php, line 1594

get_last_view

get_last_view ( $ )

Description:

Get the last page stored using the remember_this_view function. Return empty string if we don't know.

Parameters:

Returns:

The URL of the last view or an empty string if it cannot be determined.

Location:

functions.php, line 586

get_monday_before

get_monday_before ( $year, $month, $day )

Description:

Get the Monday of the week that the specified date is in. (If the date specified is a Monday, then that date is returned.)

Parameters:

Returns:

The date (in unix time format)

Location:

functions.php, line 2238

get_my_users

get_my_users ( $ )

Description:

Get a list of users. If groups are enabled, this will restrict the list of users to only those users who are in the same group(s) as the user (unless the user is an admin user). We allow admin users to see all users because they can also edit someone else's events (so they may need access to users who are not in the same groups that they are in).

Parameters:

Returns:

An array of users, where each element in the array is an array with the following keys:

Location:

functions.php, line 826

get_nonuser_cals

get_nonuser_cals ( $user )

Description:

Get a list of nonuser calendars and return info in an array.

Parameters:

Returns:

An array of nonuser cals, where each is an array with the following fields:

Location:

functions.php, line 4107

get_pref_setting

get_pref_setting ( $user, $setting )

Description:

Get a preference setting for the specified user. If no value is found in the database, then the system default setting will be returned.

Parameters:

Returns:

The value found in the webcal_user_pref table for the specified setting or the sytem default if no user settings was found.

Location:

functions.php, line 901

get_preferred_view

get_preferred_view ( $date, $args )

Description:

Get user's preferred view. The user's preferred view is stored in the $STARTVIEW global variable. This is loaded from the user preferences (or system settings if there are no user prefererences.)

Parameters:

Returns:

Nothing

Location:

functions.php, line 425

get_repeating_entries

get_repeating_entries ( $user, $date, $get_unapproved )

Description:

Get all the repeating events for the specified data and return them in an array (which is sorted by time of day). Note The global variable $repeated_events needs to be set by calling the read_repeated_events function first.

Parameters:

Returns:

The query result resource on queries (which can then be passed to the dbi_fetch_row function to obtain the results), or true/false on insert or delete queries.

Location:

functions.php, line 2039

get_site_extra_fields

get_site_extra_fields ( $eventid )

Description:

Get any site-specific fields for an entry that are stored in the database in the webcal_site_extras table.

Parameters:

Returns:

Return an array of array with the keys as follows:

Location:

functions.php, line 1475

get_sunday_before

get_sunday_before ( $year, $month, $day )

Description:

Get the Sunday of the week that the specified date is in. (If the date specified is a Sunday, then that date is returned.)

Parameters:

Returns:

The date (in unix time format)

Location:

functions.php, line 2221

html_for_add_icon

html_for_add_icon ( $ )

Description:

Generate the HTML for an icon to add a new event.

Parameters:

Returns:

The HTML for the add event icon

Location:

functions.php, line 2690

html_for_event_day_at_a_glance

html_for_event_day_at_a_glance ( $id, $date, $time, $name, $description, $status, $pri, $access, $duration, $event_owner, $event_category )

Description:

Generate the HTML for an event to be viewed in the day-at-glance (day.php). The HTML will be stored in an array ($hour_arr) indexed on the event's starting hour.

Parameters:

Returns:

Nothing

Location:

functions.php, line 2871

html_for_event_week_at_a_glance

html_for_event_week_at_a_glance ( $id, $date, $time, $name, $description, $status, $pri, $access, $duration, $event_owner, $event_category )

Description:

Generate the HTML for an event to be viewed in the week-at-glance (week.php). The HTML will be stored in an array (global variable $hour_arr) indexed on the event's starting hour.

Parameters:

Returns:

Nothing

Location:

functions.php, line 2722

html_to_8bits

html_to_8bits ( $html )

Description:

Convert HTML entities in 8bit. Note Only supported for PHP4 (not PHP3).

Parameters:

Returns:

The converted text

Location:

functions.php, line 3692

languageToAbbrev

languageToAbbrev ( $name )

Description:

Converts language names to their abbreviation

Parameters:

Returns:

The abbreviation (“fr” for “French”)

Location:

functions.php, line 4416

load_global_settings

load_global_settings ( $ )

Description:

Load default system settings (which can be updated via admin.php) System settings are stored in the webcal_config table. Note: If the setting for “server_url” is not set, the value will be calculated and stored in the database.

Parameters:

Returns:

Nothing

Location:

functions.php, line 276

load_nonuser_preferences

load_nonuser_preferences ( $nonuser )

Description:

Loads nonuser preferences from the webcal_user_pref table if on a nonuser admin page.

Parameters:

Returns:

Nothing

Location:

functions.php, line 4218

load_translation_text

load_translation_text ( $ )

Description:

Load all the language translation into an array for quick lookup. Note There is no need to call this manually. It will be invoked by the translate function the first time it is called.

Parameters:

Returns:

Nothing

Location:

translate.php, line 71

load_user_categories

load_user_categories ( $ex_global )

Description:

Load current user's category info and stuff it into category global variable.

Parameters:

Returns:

Nothing

Location:

functions.php, line 3624

load_user_layers

load_user_layers ( $user, $force )

Description:

Load current user's layer info and stuff it into layer global variable. If the system setting $allow_view_other is not set to 'Y', then we ignore all layer functionality. If $force is 0, we only load layers if the current user preferences have layers turned on.

Parameters:

Returns:

Nothing

Location:

functions.php, line 963

load_user_preferences

load_user_preferences ( $ )

Description:

Load the current user's preferences as global variables from the webcal_user_pref table. Also load the list of views for this user (not really a preference, but this is a convenient place to put this…) Notes

Parameters:

Returns:

The value used in the HTML form (or URL)

Location:

functions.php, line 622

month_name

month_name ( $m )

Description:

Return the full name of the specified month. Use the month_short_name function to get the abbreviated name of the month.

Parameters:

Returns:

The full name of the specified month

Location:

functions.php, line 3330

month_short_name

month_short_name ( $m )

Description:

Return the abbreviated name of the specified month (such as “Jan”). Use the month_name function to get the full name of the month.

Parameters:

Returns:

The abbreviated name of the specified month (example: “Jan”)

Location:

functions.php, line 3358

nonuser_load_variables

nonuser_load_variables ( $login, $prefix )

Description:

Loads nonuser variables (login, firstname, etc.) The following variables will be set:

Parameters:

Returns:

Nothing

Location:

functions.php, line 4149

print_category_menu ( $form, $date, $cat_id )

Description:

Print dropdown HTML for categories.

Parameters:

Returns:

Nothing

Location:

functions.php, line 3657

print_date_entries ( $date, $user, $is_ssi )

Description:

Print all the calendar entries for the specified user for the specified date. If we are displaying data from someone other than the logged in user, then check the access permission of the entry.

Parameters:

Returns:

Nothing

Location:

functions.php, line 2296

print_date_entries_timebar ( $date, $user, $ssi )

Description:

Print all the entries in a time bar format for the specified user for the specified date. If we are displaying data from someone other than the logged in user, then check the access permission of the entry.

Parameters:

Returns:

Nothing

Location:

functions.php, line 3834

print_date_selection ( $prefix, $date )

Description:

Print out a date selection for use in a form.

Parameters:

Returns:

The value used in the HTML form (or URL)

Location:

functions.php, line 1139

print_day_at_a_glance ( $date, $user )

Description:

Print all the calendar entries for the specified user for the specified date in day-at-a-glance format. If we are displaying data from someone other than the logged in user, then check the access permission of the entry.

Parameters:

Returns:

Nothing

Location:

functions.php, line 3026

print_entry

print_entry ( $id, $date, $time, $duration, $name, $description, $status, $pri, $access, $event_owner, $event_cat )

Description:

Print the HTML for one day's events in the month view.

Parameters:

Returns:

Nothing

Location:

functions.php, line 1350

print_entry_timebar

print_entry_timebar ( $id, $date, $time, $duration, $name, $description, $status, $pri, $access, $event_owner, $event_category )

Description:

Print the HTML for an events with a timebar.

Parameters:

Returns:

Nothing

Location:

functions.php, line 3914

print_header ( $includes, $HeadX, $BodyX, $disbleCustom, $disableStyle )

Description:

Prints the HTML header and opening HTML body tag.

Parameters:

Returns:

Nothing

Location:

init.php, line 213

print_header_timebar ( $start_hour, $end_hour )

Description:

Print the header for the timebar.

Parameters:

Returns:

Nothing

Location:

functions.php, line 4069

print_trailer ( $include_nav_links, $closeDb, $disableCustom )

Description:

Print the common trailer.

Parameters:

Returns:

Nothing

Location:

init.php, line 334

query_events

query_events ( $user, $want_repeated, $non, $date_filter, $cat_id )

Description:

Read events visible to a user (including layers and possibly public access if enabled); Return results in an array sorted by time of day.

Parameters:

Returns:

An array of events

Location:

functions.php, line 1676

read_events

read_events ( $user, $startdate, $enddate, $cat_id )

Description:

Read all the events for a user for the specified range of dates. This is only called once per page request to improve performance. All the events get loaded into the array $events sorted by time of day (not date).

Parameters:

Returns:

An array of events

Location:

functions.php, line 1512

read_repeated_events

read_repeated_events ( $user, $cat_id, $date )

Description:

Read all the repeated events for a user. This is only called once per page request to improve performance. All the events get loaded into the array $repeated_events sorted by time of day (not date). This will load all the repeated events into memory. Notes

Parameters:

Returns:

An array of repeating events

Location:

functions.php, line 1828

remember_this_view

remember_this_view ( $ )

Description:

Generate a cookie that saves the last calendar view (month, week, day) based on the current $REQUEST_URI so we can return to this same page after a user edits/deletes/etc an event.

Parameters:

Returns:

Nothing

Location:

functions.php, line 567

repeated_event_matches_date

repeated_event_matches_date ( $event, $dateYmd )

Description:

Returns a boolean stating whether or not the event passed in will fall on the date passed.

Parameters:

Returns:

true or false

Location:

functions.php, line 2073

reset_language

reset_language ( $new_language )

Description:

Unload translations so we can switch languages and translate into a different language).

Parameters:

Returns:

Nothing

Location:

translate.php, line 48

send_http_login

send_http_login ( $ )

Description:

Send an HTTP login request to the browser and stop execution.

Parameters:

Returns:

Nothing

Location:

functions.php, line 534

send_no_cache_header

send_no_cache_header ( $ )

Description:

Send header stuff that tells the browser not to cache this page. Different browser use different mechanisms for this, so a series of HTTP header directives are sent. Note This function needs to be called before any HTML output is sent to the browser.

Parameters:

Returns:

Nothing

Location:

functions.php, line 606

send_to_preferred_view

send_to_preferred_view ( $date, $args )

Description:

Send a redirect to the user's preferred view. The user's preferred view is stored in the $STARTVIEW global variable. This is loaded from the user preferences (or system settings if there are no user prefererences.)

Parameters:

Returns:

Nothing

Location:

functions.php, line 467

set_today

set_today ( $date )

Description:

Determines what the day is after the $TZ_OFFSET and sets it globally. The following global variables will be set:

Parameters:

Returns:

Nothing

Location:

functions.php, line 4246

site_extras_for_popup

site_extras_for_popup ( $id )

Description:

Generate the HTML used in an event popup for the site_extras fields of an event.

Parameters:

Returns:

The HTML to be used within the event popup for any site_extra fields found for the specified event

Location:

functions.php, line 1011

time_to_minutes

time_to_minutes ( $time )

Description:

Convert a time format HHMMSS (like 131000 for 1PM) into number of minutes past midnight.

Parameters:

Returns:

The number of minutes since midnight

Location:

functions.php, line 2639

times_overlap

times_overlap ( $time1, $duration1, $time2, $duration1 )

Description:

Check to see if two events overlap.

Parameters:

Returns:

true if the two times overlap, false if they do not

Location:

functions.php, line 2428

tooltip

tooltip ( $str )

Description:

Translate text and remove and HTML from it. This is useful for tooltips, which barf on HTML. Note The etooltip function will print the result rather than return the value.

Parameters:

Returns:

The translated text with all HTML removed

Location:

translate.php, line 158

translate

translate ( $str )

Description:

Translate a string from the default English usage to some other language. The first time that this is called, the translation file will be loaded (with the load_translation_text function).

Parameters:

Returns:

The translated text, if available. If no translation is avalailable, then the original untranslated text is returned.

Location:

translate.php, line 115

user_get_boss_list

user_get_boss_list ( $assistant )

Description:

Get a list of an assistant's boss from the webcal_asst table.

Parameters:

Returns:

An array of bosses, where each boss is an array with the following fields:

Location:

functions.php, line 3714

user_has_boss

user_has_boss ( $assistant )

Description:

Check the webcal_asst table to see if the specified user login has any bosses associated with it.

Parameters:

Returns:

true if the user is an assistant to one or more bosses

Location:

functions.php, line 3773

user_is_assistant

user_is_assistant ( $assistant, $boss )

Description:

Return true if $user is $boss assistant by checking in the webcal_asst table.

Parameters:

Returns:

true or false

Location:

functions.php, line 3748

user_is_nonuser_admin

user_is_nonuser_admin ( $login, $nonuser )

Description:

Check the webcal_nonuser_cals table to determine if the user is the administrator for the nonuser calendar.

Parameters:

Returns:

true if the user is the administrator for the nonuser calendar

Location:

functions.php, line 4195

week_number

week_number ( $date )

Description:

Returns week number for specified date. depending from week numbering settings.

Parameters:

Returns:

The week number of the specified date

Location:

functions.php, line 2258

weekday_name

weekday_name ( $w )

Description:

Return the full weekday name. Use the weekday_short_name function to get the abbreviated weekday name.

Parameters:

Returns:

the full weekday name (“Sunday”)

Location:

functions.php, line 3386

weekday_short_name

weekday_short_name ( $w )

Description:

Return the abbreviated weekday name. Use the weekday_name function to get the full weekday name.

Parameters:

Returns:

the abbreviated weekday name (“Sun”)

Location:

functions.php, line 3408