This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void main() { | |
final now = DateTime.now(); | |
final offset = now.timeZoneOffset; | |
final negativeDuration = Duration(hours: -3); | |
final duration = negativeDuration; | |
print(offset.isNegative); | |
print(negativeDuration.isNegative); | |
final date = DateTime.parse('2023-03-07 10:00').subtract(duration); | |
final utcDate = date.toLocal().toLocal().copyWith(isUtc: true).toIso8601String(); | |
print(utcDate); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
main() { | |
print(DateTime.parse('2015-12-28')); | |
print(DateTime.parse('2015/12/28')); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
background-color: red !important | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
autor: zhukov sergey | |
website: www.websiterog.ru | |
email : [email protected] | |
--> | |
<div id="contactform"> | |
<div id="contact-button"> | |
<div class="rotated-text">Contact</div> | |
</div> |