Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
ensembl-gh-mirror
ensembl
Commits
8cf08639
Commit
8cf08639
authored
Apr 28, 2006
by
Daniel Rios
Browse files
Modified method sconds_to_date and date_to seconds with the appropriate methods in MSSQL
parent
9126664f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
modules/Bio/EnsEMBL/DBSQL/DBConnection.pm
modules/Bio/EnsEMBL/DBSQL/DBConnection.pm
+4
-2
No files found.
modules/Bio/EnsEMBL/DBSQL/DBConnection.pm
View file @
8cf08639
...
...
@@ -718,10 +718,12 @@ sub from_seconds_to_date{
}
elsif
(
$self
->
driver
eq
'
odbc
'){
if
(
$seconds
){
$string
=
"
DATEDIFF(date,'JAN 1 1970',
$seconds
)
";
$string
=
"
DATEADD(second,
$seconds
,date)
";
# $string = "DATEDIFF(date,'JAN 1 1970',$seconds)";
}
else
{
$string
=
"
\"
0000-00-00 00:00:00
\"
";
# $string = "\"0000-00-00 00:00:00\"";
$string
=
'
January 1, 1900
';
}
}
else
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment