Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 893144 Details for
Bug 1095111
If truncate(to=>'week') fails, it will clobber the object
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
Test case
test (text/plain), 376 bytes, created by
Petr Pisar
on 2014-05-07 07:45:24 UTC
(
hide
)
Description:
Test case
Filename:
MIME Type:
Creator:
Petr Pisar
Created:
2014-05-07 07:45:24 UTC
Size:
376 bytes
patch
obsolete
>#!/usr/bin/perl >use DateTime; >use Test::More tests => 2; >my $dt = DateTime->new( > year => 2010, > month => 3, > day => 25, > hour => 1, > minute => 5, > time_zone => 'Asia/Tehran' >); >is( $dt->day_of_week(), '4', 'We start on Thursday' ); > >eval { $dt->truncate(to => 'week'); } || warn "Eval failed with '$@'\n"; > >is( $dt->day_of_week(), '4', 'should retain 4' );
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1095111
: 893144 |
893147