Displays Publications that were being read on `date`.
    `date` is a date tobject.
196642
def day_publications_card(date):
    
    d = date.strftime(app_settings.DATE_FORMAT)
    card_title = 'Reading on {}'.format(d)
    return {
            'card_title': card_title,
            'publication_list': day_publications(date=date),
            }
840931
function(date, showSeconds) {
			if(typeof showSeconds === "undefined") {
				showSeconds = true;
			}

			if(!date) {
				date = this.getDateObject();
			}

			var data  = [
				date.getHours(),
				date.getMinutes()			
			];

			if(showSeconds === true) {
				data.push(date.getSeconds());
			}

			return this.digitize(data);
		}
935433
def parse(date)
			return date if date.kind_of?(self)
			r=[]
			dates = date.to_s.chomp.split(/,\s*/)
			dates.each do |d|
				r << d.split(/\s*->\s*/).map {|i| i == ":now" ? :now : i }
			end
			return DateRange.new(r)
		end
1315992
public static List<CPInstance> findByLtD_S(Date displayDate, int status) {
		return getPersistence().findByLtD_S(displayDate, status);
	}
920987
def date(self):
        
        if self._date:
            return self._date
        return datetime.datetime.now().strftime('%Y-%m-%d')
1167311
def pub_date(soup):
    
    pub_date = first(raw_parser.pub_date(soup, date_type="pub"))
    if pub_date is None:
        pub_date = first(raw_parser.pub_date(soup, date_type="publication"))
    if pub_date is None:
        return None
    (day, month, year) = ymd(pub_date)
    return date_struct(year, month, day)
31132
def convertDate(date):
    """"""

    d, t = date.split('T')
    return decimal_date(d, timeobs=t)
661837
def toList(self):
        
        date = self.date()
        sign = '+' if date[0] >= 0 else '-'
        date[0] = abs(date[0])
        return list(sign) + date
497262
function(date) {
      if (_.isDate(date)) {
        this._date = date.toSerialNumber();
      } else if (_.isNumber(date)) {
        this._date = date;
      } else {
        throw new CError('wrong date type').log();
      }
    }
354195
def setCurrentDate( self, date ):
        
        if ( date == self._currentDate or not date.isValid() ):
            return
        
        self._currentDate = date
        self.markForRebuild()
        
        parent = self.parent()
        if ( not parent.signalsBlocked() ):
            parent.currentDateChanged.emit(date)
            parent.titleChanged.emit(self.title())
1134289
def event_date(self, event_date):
        """"""
        self._group_data['eventDate'] = self._utils.format_datetime(
            event_date, date_format='%Y-%m-%dT%H:%M:%SZ'
        )
268749
def date(date):
    
    date = date.value
    return (datetime.strptime(date[:-5], '%Y-%m-%dT%H:%M:%S')
            if len(date) == 24
            else datetime.strptime(date, '%Y%m%dT%H:%M:%S'))
313251
def get_date_of_author(_id):
    """"""
    _dict = get_date_author()
    for date, ids in _dict.items():
        if _id in ids:
            return date
    return None
1117087
def clean_publish_dates(self):
        
        if self.end_date:
            if not self.start_date:
                raise ValidationError("""The End Date requires a Start Date value.""")
            elif self.end_date <= self.start_date:
                raise ValidationError("""The End Date must not precede the Start Date.""")
733929
def record_date(self, value):
        
        if value:
            self._record_date = parse(value).date() if isinstance(value, type_check) else value
522777
def set_published_date(self):
        """"""
        try:
            self.published_date = self.soup.find('pubdate').string
        except AttributeError:
            self.published_date = None
1335077
def paging(self):
        
        if 'date' in self.spec:
            _, date_span, _ = utils.parse_date(self.spec['date'])
            return date_span
        return 'offset'