Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
spins:invis:testing:perl-packages
perl-Convert-NLS_DATE_FORMAT
perl-Convert-NLS_DATE_FORMAT.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File perl-Convert-NLS_DATE_FORMAT.spec of Package perl-Convert-NLS_DATE_FORMAT
# # spec file for package perl-Convert-NLS_DATE_FORMAT (Version 0.02) # # Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: perl-Convert-NLS_DATE_FORMAT Version: 0.02 Release: 1 License: CHECK(GPL+ or Artistic) %define cpan_name Convert-NLS_DATE_FORMAT Summary: Convert Oracle NLS_DATE_FORMAT <-> strftime Format Strings Url: http://search.cpan.org/dist/Convert-NLS_DATE_FORMAT/ Group: Development/Libraries/Perl Source: http://www.cpan.org/authors/id/K/KO/KOLIBRIE/Convert-NLS_DATE_FORMAT-0.02.tar.bz2 # Source: %{cpan_name}-%{version}.tar.bz2 BuildRequires: perl BuildRequires: perl-macros BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch %{perl_requires} %description Convert Oracle's NLS_DATE_FORMAT string into a strptime format string, or the reverse. Functions * oracle2posix Takes an Oracle NLS_DATE_FORMAT string and converts it into formatting string compatible with 'strftime' or 'strptime'. my $format = oracle2posix('YYYY-MM-DD HH24:MI:SS'); # '%Y-%m-%d %H:%M:%S' * posix2oracle Takes a 'strftime' or 'strptime' formatting string and converts it into an Oracle NLS_DATE_FORMAT string. _It is possible to create strings which Oracle will not accept as valid NLS_DATE_FORMAT strings._ my $format = posix2oracle('%Y-%m-%d %H:%M:%S'); # 'YYYY-MM-DD HH24:MI:SS' EXPORT None by default. 'oracle2posix' and 'posix2oracle' when asked. %prep %setup -q -n %{cpan_name}-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor %{__make} %{?_smp_mflags} %check %{__make} test %install %perl_make_install %perl_process_packlist %perl_gen_filelist %clean %{__rm} -rf %{buildroot} %files -f %{name}.files %defattr(644,root,root,755) %doc Changes README %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor