Sponsored Content
Full Discussion: selecting values of date
Top Forums Programming selecting values of date Post 302492501 by DGPickett on Monday 31st of January 2011 05:04:48 PM
Old 01-31-2011
He didn't say, and I meant a built in RDBMS conversion from varchar to a dateTime to timestamp datatype, on the fly, for comparison.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Selecting the middle date!

Hi everyone really need some help with this one. Ive to write a script where the middle date has to be checked and made sure that it is the current date. 281220032812200328122003 This is the format ive to check the date in the middle is the current date. Can anyone help me with this... (14 Replies)
Discussion started by: vcardo10
14 Replies

2. UNIX for Dummies Questions & Answers

Selecting Unique Values from many List

I have a question I have like 19 different list which contains the name of the server but what I need is just unique ones. First thing I need to do is just make a unique list within the list itself i.e. delete anything that is repeated inside the list like for example in list1 i... (1 Reply)
Discussion started by: pareshan
1 Replies

3. Shell Programming and Scripting

PERL - Selecting specific files based on 'date stamp' values

Hi, I've list of files in a directory, which have date stamp value in their names. ex: abc_data_20071102.csv, abc_data_20091221.csv, abc_data_20100110.csv, abc_data_20100222.csv, abc_data_20080620.csv,... etc., I need to select and process only files, within the given date... (4 Replies)
Discussion started by: ganapati
4 Replies

4. Shell Programming and Scripting

Selecting rows based on values in columns

Hi My pipe delimited .txt file contains rows with 10 columns. Can anyone advise how I output to file only those rows with the letters ‘ci' as the first 2 characters in the 3rd column ? Many thanks (4 Replies)
Discussion started by: malts18
4 Replies

5. Programming

Selecting array values

I have two arrays DIST(1:NCOF) and X(1:NX) Let NCOF = 5 and NX = 15, with DIST = and X = I want to create an array that puts a zero if DIST is outside the region in X, otherwise putting 1. In this example I should get RES = Using DIST = would give RES = The values in... (6 Replies)
Discussion started by: kristinu
6 Replies

6. Shell Programming and Scripting

Help in selecting line numbers between two values

Hi! I've a file as shown below 1 hello 2 how 5 are 3 you 4 hello 5 world Every statement consists of line numbers at the beginning which are not in sequence. Now I want to select all the line numbers which are present between the line numbers specified by the user.. For example... (1 Reply)
Discussion started by: abk07
1 Replies

7. Shell Programming and Scripting

selecting record by matching in two columns values

Hi Guys ! i want to search a record in file by matching two values in a record in two different columns suppose i have 3 columns and i want to select all those values from col1 for which in col3 has a specific value e.g select all "john" from column1 where column 3 has a value of "20" ... (9 Replies)
Discussion started by: ourned
9 Replies

8. Shell Programming and Scripting

Selecting lowest and highest values in columns 1 and 2, based on subsets in column 3

Hi, I have a file with the following columns: 361459 447394 CHL1 290282 290282 CHL1 361459 447394 CHL1 361459 447394 CHL1 178352861 178363529 AGA 178352861 178363529 AGA 178363657 178363657 AGA Essentially, using CHL1 as an example. For any line that has CHL1 in... (2 Replies)
Discussion started by: hubleo
2 Replies

9. Shell Programming and Scripting

Selecting lines having same values for first two columns

Hello to all. This is first post. Kindly excuse me if I do not adhere to any rules and regulations of this forum. I have a file containing some rows with three columns each per row(separeted by a space). There are certain rows for which first two columns have same value but the value in... (6 Replies)
Discussion started by: manojmalhotra13
6 Replies

10. Shell Programming and Scripting

Help with shell script: selecting rows that have the same values in two columns

Hello, everyone I am beginner for shell programming. I want to print all lines that have the same values in first two columns data: a b 1 2 a a 3 4 b b 5 6 a b 4 6 what I expected is : a a 3 4 b b 5 6 but I searched for one hour in... (2 Replies)
Discussion started by: nengcheng
2 Replies
RDF::Closure::DatatypeHandling(3pm)			User Contributed Perl Documentation		       RDF::Closure::DatatypeHandling(3pm)

NAME
RDF::Closure::DatatypeHandling - validate and canonicalise typed literals ANALOGOUS PYTHON
RDFClosure/DatatypeHandling.py DESCRIPTION
Provides datatype handling functions for OWL 2 RL and RDFS datatypes. Functional Interface This module can export four functions: o "literal_canonical($lit)" Given an RDF::Trine::Node::Literal, returns a literal with the canonical lexical value for its given datatype. If the literal is not a valid lexical form for its datatype throws an Error. If the literal is a plain literal, returns an rdf:PlainLiteral typed literal; if the literal is of an unrecognised datatype, simply returns the original literal. Note that as per OWL 2 RL rules, xsd:dateTime literals are not shifted to UTC, even though XSD says that UTC is the canonical form. By setting the "force_utc" to true, you can force XSD-style canonicalisation. (See the object-oriented interface.) o "literal_canonical_safe($lit)" As per "literal_canonical", but in the case where a literal is not a valid lexical form, simply returns the original literal. o "literal_valid($lit)" Returns true iff the literal is a valid lexical form for its datatype. An example of an invalid literal might be: "2011-02-29"^^xsd:date o "literals_identical($lit1, $lit2)" Returns true iff the two literals are identical according to OWL 2 RL. Here are some example pairs that are identical: # integers and decimals are drawn from the same pool of values "1.000"^^xsd:decimal "1"^^xsd:integer # different ways of writing the same datetime "2010-01-01T12:00:00.000Z"^^xsd:dateTime "2010-01-01T12:00:00+00:00"^^xsd:dateTime Here are some example literals that are not identical: # floats and decimals are drawn from different pools of values "1.000"^^xsd:float "1"^^xsd:integer # according to OWL 2 these are "equal but not identical". "2010-01-01T12:00:00+00:00"^^xsd:dateTime "2010-01-01T11:00:00-01:00"^^xsd:dateTime This latter example is affected by "force_utc". o "literal_to_perl($lit)" Returns a scalar value for the literal, or an appropriate object with overloaded operators (e.g. DateTime, Math::BigInt). Variables $RDF, $RDFS, $OWL and $XSD may also be exported as a convenience. These are RDF::Trine::Namespace objects. Don't modify them. Object-Oriented Interface use RDF::Trine; use RDF::Closure::DatatypeHandling qw[$XSD]; my $lit = RDF::Trine::Node::Literal->new( "2010-01-01T11:00:00-01:00", undef, $XSD->dateTime); my $handler = RDF::Closure::DatatypeHandling->new(force_utc => 1); print $handler->literal_canonical($lit)->as_ntriples; SEE ALSO
RDF::Closure. <http://www.perlrdf.org/>. AUTHOR
Toby Inkster <tobyink@cpan.org>. COPYRIGHT
Copyright 2008-2011 Ivan Herman Copyright 2011-2012 Toby Inkster This library is free software; you can redistribute it and/or modify it under any of the following licences: o The Artistic License 1.0 <http://www.perlfoundation.org/artistic_license_1_0>. o The GNU General Public License Version 1 http://www.gnu.org/licenses/old-licenses/gpl-1.0.txt <http://www.gnu.org/licenses/old- licenses/gpl-1.0.txt>, or (at your option) any later version. o The W3C Software Notice and License http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231 <http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231>. o The Clarified Artistic License <http://www.ncftp.com/ncftp/doc/LICENSE.txt>. DISCLAIMER OF WARRANTIES
THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. perl v5.14.2 2012-06-28 RDF::Closure::DatatypeHandling(3pm)
All times are GMT -4. The time now is 01:18 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy