Jump to navigation Jump to search
Revision as of 12:56, 11 July 2013 by Travis (Created page with "<h2>Comments (for Instructors) Visible in the Library Browser: PG Code Snippet</h2> <!-- Header for these sections -- no modification needed --> <p style="background-colo...")
Comments (for Instructors) Visible in the Library Browser: PG Code Snippet
|PG problem file||Explanation|
$date = $formattedOpenDate; # Built-in WeBWorK variable $date =~s/ .*//; # Prune off the detailed starting time @parts = split('/',$date); # Break apart month, day and year which are separated by / $month = $parts; $day = $parts; $year = $parts; BEGIN_TEXT For the given problem set, $PAR $PAR the Open Date Month is $month $PAR the Open Date Day is $day $PAR the Open Date Year is $year END_TEXT
Use this code fragment to obtain variables dependent upon the open month, day and/or year.